diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/version-management/git-and-tools/glitter/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/version-management/git-and-tools/glitter/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/version-management/git-and-tools/glitter/default.nix b/nixpkgs/pkgs/applications/version-management/git-and-tools/glitter/default.nix new file mode 100644 index 000000000000..f8034ce42d7f --- /dev/null +++ b/nixpkgs/pkgs/applications/version-management/git-and-tools/glitter/default.nix @@ -0,0 +1,30 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "glitter"; + version = "1.5.15"; + + src = fetchFromGitHub { + owner = "milo123459"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-4oI0opwbmEyHc3zx06l8bDPnOi7rGrMqUJPBDAfmPY0="; + }; + + cargoSha256 = "sha256-rmECD/0ThDXBAGqDMNbyHi9eoGNOJhBndaxCuUS/qpc="; + + # tests require it to be in a git repository + preCheck = '' + git init + ''; + + # error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context + checkFlags = [ "--skip" "runs_correctly" ]; + + meta = with lib; { + description = "A git wrapper that allows you to compress multiple commands into one"; + homepage = "https://github.com/milo123459/glitter"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} |