2022-05-10 18:28:36 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, gitMinimal
|
|
|
|
, gfold
|
|
|
|
, lib
|
|
|
|
, libiconv
|
|
|
|
, makeWrapper
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, stdenv
|
2022-06-26 17:41:46 +00:00
|
|
|
, testers
|
2022-05-10 18:28:36 +00:00
|
|
|
}:
|
2022-01-07 20:49:13 +00:00
|
|
|
|
2022-05-10 18:28:36 +00:00
|
|
|
let
|
2022-01-07 20:49:13 +00:00
|
|
|
pname = "gfold";
|
2023-03-10 18:38:10 +00:00
|
|
|
version = "4.3.2";
|
2022-05-10 18:28:36 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
2022-01-07 20:49:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickgerace";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-10 18:38:10 +00:00
|
|
|
sha256 = "sha256-wZokY1KhhO3aztLIeZU/saGibzTYB9loGe003arFWEs=";
|
2022-01-07 20:49:13 +00:00
|
|
|
};
|
|
|
|
|
2023-03-10 18:38:10 +00:00
|
|
|
cargoHash = "sha256-yII5lm0zbP46gUsLrr3/828Tolwg5meRP5TVvEMy8Dg=";
|
2022-01-07 20:49:13 +00:00
|
|
|
|
2022-05-10 18:28:36 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2022-01-07 20:49:13 +00:00
|
|
|
|
2022-06-26 17:41:46 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-05-10 18:28:36 +00:00
|
|
|
package = gfold;
|
|
|
|
command = "gfold --version";
|
|
|
|
inherit version;
|
|
|
|
};
|
2022-01-07 20:49:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
2022-05-10 18:28:36 +00:00
|
|
|
"CLI tool to help keep track of your Git repositories, written in Rust";
|
|
|
|
homepage = "https://github.com/nickgerace/gfold";
|
2022-01-07 20:49:13 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.shanesveller ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|