ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
45 lines
948 B
Nix
45 lines
948 B
Nix
{ fetchFromGitHub
|
|
, gitMinimal
|
|
, gfold
|
|
, lib
|
|
, libiconv
|
|
, makeWrapper
|
|
, rustPlatform
|
|
, Security
|
|
, stdenv
|
|
, testers
|
|
}:
|
|
|
|
let
|
|
pname = "gfold";
|
|
version = "4.0.1";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nickgerace";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-XOUXDuKLr8tESG2GJMl1kYsk2JRtQXzQyaO7d44Ajt8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-jkktXVgHtqQeMU+rPiT4fz0kTIHW07RukxCnFABlzgw=";
|
|
|
|
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.shanesveller ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|