2022-05-18 14:49:53 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, gitMinimal
|
|
|
|
, gfold
|
|
|
|
, lib
|
|
|
|
, libiconv
|
|
|
|
, makeWrapper
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, stdenv
|
|
|
|
, testVersion
|
|
|
|
}:
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
let
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "gfold";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickgerace";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "1yh5173qhi9bd41zss9k21nm0xnr2sa918kvlyr5xvzhq47rrwz5";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
cargoSha256 = "sha256-o2fMIlj+veTmhfqi7BVpxr3520SOwWLmVS2UU83EVjo=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru.tests.version = testVersion {
|
|
|
|
package = gfold;
|
|
|
|
command = "gfold --version";
|
|
|
|
inherit version;
|
|
|
|
};
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
2022-05-18 14:49:53 +00:00
|
|
|
"CLI tool to help keep track of your Git repositories, written in Rust";
|
|
|
|
homepage = "https://github.com/nickgerace/gfold";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.shanesveller ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|