2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
gfold,
|
|
|
|
lib,
|
|
|
|
libiconv,
|
|
|
|
rustPlatform,
|
|
|
|
Security,
|
|
|
|
stdenv,
|
|
|
|
testers,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "4.4.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickgerace";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-KKuWPitm7oD2mXPSu2rbOyzwJ9JJ23LBQIIkkPHm1w4=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-wDUOYK9e0i600UnJ0w0FPI2GhTa/QTq/2+ICiDWrmEU=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
|
|
|
Security
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-05-18 14:49:53 +00:00
|
|
|
package = gfold;
|
|
|
|
command = "gfold --version";
|
|
|
|
inherit version;
|
|
|
|
};
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
description = "CLI tool to help keep track of your Git repositories, written in Rust";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/nickgerace/gfold";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.asl20;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ maintainers.sigmanificient ];
|
2022-01-13 20:06:32 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gfold";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
}
|