lol
1{ lib
2, stdenv
3, fetchFromGitHub
4, python3
5}:
6
7stdenv.mkDerivation {
8 pname = "inkscape-applytransforms";
9 version = "0.pre+unstable=2021-05-11";
10
11 src = fetchFromGitHub {
12 owner = "Klowner";
13 repo = "inkscape-applytransforms";
14 rev = "5b3ed4af0fb66e399e686fc2b649b56db84f6042";
15 sha256 = "XWwkuw+Um/cflRWjIeIgQUxJLrk2DLDmx7K+pMWvIlI=";
16 };
17
18 checkInputs = [
19 python3.pkgs.inkex
20 python3.pkgs.pytestCheckHook
21 ];
22
23 dontBuild = true;
24
25 doCheck = true;
26
27 installPhase = ''
28 runHook preInstall
29
30 install -Dt "$out/share/inkscape/extensions" *.inx *.py
31
32 runHook postInstall
33 '';
34
35 meta = with lib; {
36 description = "Inkscape extension which removes all matrix transforms by applying them recursively to shapes";
37 homepage = "https://github.com/Klowner/inkscape-applytransforms";
38 license = licenses.gpl2Only;
39 maintainers = with maintainers; [ jtojnar ];
40 platforms = platforms.all;
41 };
42}