tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
utpm: 0-unstable-2024-12-17 -> 0.2.0
Louis Thevenet
5 months ago
bdb07037
b30e0dfa
+25
-8
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ut
utpm
package.nix
+25
-8
pkgs/by-name/ut/utpm/package.nix
···
4
rustPlatform,
5
openssl,
6
pkg-config,
0
0
0
7
}:
8
-
rustPlatform.buildRustPackage {
9
pname = "utpm";
10
-
version = "0-unstable-2024-12-17";
11
-
12
-
cargoHash = "sha256-fqGxor2PgsQemnPNoZkgNUNc7yRg2eqHTLzJAVpt6+8=";
13
14
src = fetchFromGitHub {
15
owner = "Thumuss";
16
repo = "utpm";
17
-
rev = "6c2cabc8e7e696ea129f55aa7732a6be63bc2319";
18
-
hash = "sha256-uuET0BG2kBFEEWSSZ35h6+tnqTTjEHOP50GR3IkL+CE=";
19
};
20
0
0
21
env.OPENSSL_NO_VENDOR = 1;
22
23
buildInputs = [
···
25
];
26
nativeBuildInputs = [
27
pkg-config
0
28
];
29
30
-
doCheck = false; # no tests
0
0
0
0
0
0
0
0
0
0
0
0
0
31
32
meta = {
33
description = "Package manager for typst";
···
41
mainProgram = "utpm";
42
maintainers = with lib.maintainers; [ louis-thevenet ];
43
};
44
-
}
···
4
rustPlatform,
5
openssl,
6
pkg-config,
7
+
stdenv,
8
+
buildPackages,
9
+
installShellFiles,
10
}:
11
+
rustPlatform.buildRustPackage (finalAttrs: {
12
pname = "utpm";
13
+
version = "0.2.0";
0
0
14
15
src = fetchFromGitHub {
16
owner = "Thumuss";
17
repo = "utpm";
18
+
tag = "v${finalAttrs.version}";
19
+
hash = "sha256-NlH+fPkTNqaQc2BrjerktnKS2L731K9G3z+N2xdx3kg=";
20
};
21
22
+
cargoHash = "sha256-WR9LD5HjLgh9jirnjTc6BeNg8KjVZI+DuJRYEbN3tmE=";
23
+
24
env.OPENSSL_NO_VENDOR = 1;
25
26
buildInputs = [
···
28
];
29
nativeBuildInputs = [
30
pkg-config
31
+
installShellFiles
32
];
33
34
+
postInstall =
35
+
let
36
+
utpm =
37
+
if stdenv.buildPlatform.canExecute stdenv.hostPlatform then
38
+
placeholder "out"
39
+
else
40
+
buildPackages.utpm;
41
+
in
42
+
''
43
+
installShellCompletion --cmd utpm \
44
+
--bash <(${utpm}/bin/utpm generate bash) \
45
+
--fish <(${utpm}/bin/utpm generate fish) \
46
+
--zsh <(${utpm}/bin/utpm generate zsh)
47
+
'';
48
49
meta = {
50
description = "Package manager for typst";
···
58
mainProgram = "utpm";
59
maintainers = with lib.maintainers; [ louis-thevenet ];
60
};
61
+
})