2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
2020-11-24 20:58:05 +00:00
|
|
|
, runCommand
|
|
|
|
, inkcut
|
2021-06-28 23:13:55 +00:00
|
|
|
, callPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, texlive
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
2021-06-28 23:13:55 +00:00
|
|
|
applytransforms = callPackage ./extensions/applytransforms { };
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
hexmap = stdenv.mkDerivation {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "hexmap";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-01-26";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lifelike";
|
|
|
|
repo = "hexmapextension";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "241c9512d0113e8193b7cf06b69ef2c4730b0295";
|
|
|
|
hash = "sha256-pSPAupp3xLlbODE2BGu1Xiiiu1Y6D4gG4HhZwccAZ2E=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2020-11-24 20:58:05 +00:00
|
|
|
inkcut = (runCommand "inkcut-inkscape-plugin" {} ''
|
|
|
|
mkdir -p $out/share/inkscape/extensions
|
|
|
|
cp ${inkcut}/share/inkscape/extensions/* $out/share/inkscape/extensions
|
|
|
|
'');
|
2024-01-02 11:29:13 +00:00
|
|
|
silhouette = callPackage ./extensions/silhouette { };
|
|
|
|
textext = callPackage ./extensions/textext {
|
|
|
|
pdflatex = texlive.combined.scheme-basic;
|
|
|
|
lualatex = texlive.combined.scheme-basic;
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|