base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gl / glitter / package.nix
blobbe21abd9effb74c66c621df9d4a94baf2b658ed7
1 { lib, rustPlatform, fetchFromGitHub, git }:
3 rustPlatform.buildRustPackage rec {
4   pname = "glitter";
5   version = "1.6.6";
7   src = fetchFromGitHub {
8     owner = "milo123459";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-dImQLC7owPf2EB5COO5vjN3a6k7gJ88D2hMSUW2/wn4=";
12   };
14   cargoHash = "sha256-7JQcY3HCG3UQ0Mfz/+ZZ0axGEpQoH410FT72tjHW7EE=";
16   nativeCheckInputs = [
17     git
18   ];
20   # tests require it to be in a git repository
21   preCheck = ''
22     git init
23   '';
25   # error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
26   checkFlags = [ "--skip" "runs_correctly" ];
28   meta = with lib; {
29     description = "Git wrapper that allows you to compress multiple commands into one";
30     homepage = "https://github.com/milo123459/glitter";
31     changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
32     license = licenses.mit;
33     maintainers = with maintainers; [ figsoda ];
34     mainProgram = "glitter";
35   };