depot/third_party/nixpkgs/pkgs/applications/graphics/inkscape/extensions.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

46 lines
1.3 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, runCommand
, inkcut
, callPackage
}:
{
applytransforms = callPackage ./extensions/applytransforms { };
hexmap = stdenv.mkDerivation {
pname = "hexmap";
version = "unstable-2023-01-26";
src = fetchFromGitHub {
owner = "lifelike";
repo = "hexmapextension";
rev = "241c9512d0113e8193b7cf06b69ef2c4730b0295";
hash = "sha256-pSPAupp3xLlbODE2BGu1Xiiiu1Y6D4gG4HhZwccAZ2E=";
};
preferLocalBuild = true;
installPhase = ''
runHook preInstall
mkdir -p "$out/share/inkscape/extensions"
cp -p *.inx *.py "$out/share/inkscape/extensions/"
find "$out/share/inkscape/extensions/" -name "*.py" -exec chmod +x {} \;
runHook postInstall
'';
meta = with lib; {
description = "This is an extension for creating hex grids in Inkscape. It can also be used to make brick patterns of staggered rectangles";
homepage = "https://github.com/lifelike/hexmapextension";
license = licenses.gpl2Plus;
maintainers = [ maintainers.raboof ];
platforms = platforms.all;
};
};
inkcut = (runCommand "inkcut-inkscape-plugin" {} ''
mkdir -p $out/share/inkscape/extensions
cp ${inkcut}/share/inkscape/extensions/* $out/share/inkscape/extensions
'');
}