-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
/
default.nix
47 lines (41 loc) · 962 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
fetchFromGitHub,
gfold,
lib,
libiconv,
rustPlatform,
Security,
stdenv,
testers,
}:
let
pname = "gfold";
version = "4.5.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "nickgerace";
repo = pname;
rev = version;
sha256 = "sha256-7wTU+yVp/GO1H1MbgZKO0OwqSC2jbHO0lU8aa0tHLTY=";
};
cargoHash = "sha256-idzw5dfCCvujvYr7DG0oOzQUIcbACtiIZLoA4MEClzY=";
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
Security
];
passthru.tests.version = testers.testVersion {
package = gfold;
command = "gfold --version";
inherit version;
};
meta = with lib; {
description = "CLI tool to help keep track of your Git repositories, written in Rust";
homepage = "https://github.com/nickgerace/gfold";
license = licenses.asl20;
maintainers = [ maintainers.sigmanificient ];
platforms = platforms.unix;
mainProgram = "gfold";
};
}