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-06-05 15:53:02 +00:00
|
|
|
version = "4.5.0";
|
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-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-7wTU+yVp/GO1H1MbgZKO0OwqSC2jbHO0lU8aa0tHLTY=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-idzw5dfCCvujvYr7DG0oOzQUIcbACtiIZLoA4MEClzY=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-05-15 15:35:15 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|