tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bagr: init at 0.3.0
Jez Cope
7 months ago
d9cfcb04
f0f55513
+37
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ba
bagr
package.nix
+37
pkgs/by-name/ba/bagr/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
fetchFromGitHub,
4
4
+
rustPlatform,
5
5
+
versionCheckHook,
6
6
+
}:
7
7
+
8
8
+
rustPlatform.buildRustPackage (finalAttrs: {
9
9
+
pname = "bagr";
10
10
+
version = "0.3.0";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "pwinckles";
14
14
+
repo = "bagr";
15
15
+
tag = "v${finalAttrs.version}";
16
16
+
hash = "sha256-tvo9/ywPhYgqj4i+o6lYOmrVnLcyciM7HPdT2dKerO8=";
17
17
+
};
18
18
+
19
19
+
cargoHash = "sha256-r4tgDPyLxTjq/sxNLvlX/2MePUfOwNgranQSSbgDtu0=";
20
20
+
21
21
+
nativeInstallCheckInputs = [
22
22
+
versionCheckHook
23
23
+
];
24
24
+
doInstallCheck = true;
25
25
+
versionCheckProgramArg = "--version";
26
26
+
27
27
+
meta = {
28
28
+
description = "Command line utility for interacting with BagIt bags (RFC 8493)";
29
29
+
homepage = "https://github.com/pwinckles/bagr";
30
30
+
license = lib.licenses.asl20;
31
31
+
mainProgram = "bagr";
32
32
+
maintainers = with lib.maintainers; [
33
33
+
jezcope
34
34
+
];
35
35
+
platforms = with lib.platforms; unix ++ windows;
36
36
+
};
37
37
+
})