tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pdftricks: init at 0.4.1
Théo Bori
1 year ago
a7493a6a
8fe79365
+68
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
pd
pdftricks
package.nix
+68
pkgs/by-name/pd/pdftricks/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
meson,
6
6
+
pkg-config,
7
7
+
vala,
8
8
+
gtk3,
9
9
+
wrapGAppsHook3,
10
10
+
pantheon,
11
11
+
ninja,
12
12
+
ghostscript,
13
13
+
makeWrapper,
14
14
+
nix-update-script,
15
15
+
}:
16
16
+
stdenv.mkDerivation (finalAttrs: {
17
17
+
pname = "pdftricks";
18
18
+
version = "0.4.1";
19
19
+
20
20
+
src = fetchFromGitHub {
21
21
+
owner = "muriloventuroso";
22
22
+
repo = "pdftricks";
23
23
+
tag = finalAttrs.version;
24
24
+
hash = "sha256-l4Xg4Uk520qoaEo8UxdLE8MfpVkRj/bpGBzL5HwdDUo=";
25
25
+
};
26
26
+
27
27
+
nativeBuildInputs = [
28
28
+
meson
29
29
+
pkg-config
30
30
+
vala
31
31
+
wrapGAppsHook3
32
32
+
ninja
33
33
+
makeWrapper
34
34
+
];
35
35
+
36
36
+
buildInputs = [
37
37
+
gtk3
38
38
+
pantheon.granite
39
39
+
ghostscript
40
40
+
];
41
41
+
42
42
+
preFixup = ''
43
43
+
wrapProgram $out/bin/com.github.muriloventuroso.pdftricks \
44
44
+
--prefix PATH : ${lib.makeBinPath [ ghostscript ]} \
45
45
+
''${gappsWrapperArgs[@]}
46
46
+
'';
47
47
+
48
48
+
dontWrapGApps = true;
49
49
+
50
50
+
postPatch = ''
51
51
+
# Remove positional arguments that cause errors
52
52
+
substituteInPlace data/meson.build \
53
53
+
--replace-fail "'desktop'," "" \
54
54
+
--replace-fail "'appdata'," ""
55
55
+
'';
56
56
+
57
57
+
passthru.updateScript = nix-update-script { };
58
58
+
59
59
+
meta = {
60
60
+
description = "Simple, efficient application for small manipulations in PDF files using Ghostscript";
61
61
+
homepage = "https://github.com/muriloventuroso/pdftricks";
62
62
+
changelog = "https://github.com/muriloventuroso/pdftricks/releases";
63
63
+
license = lib.licenses.gpl3Plus;
64
64
+
maintainers = with lib.maintainers; [ theobori ];
65
65
+
platforms = lib.platforms.linux;
66
66
+
mainProgram = "com.github.muriloventuroso.pdftricks";
67
67
+
};
68
68
+
})