sunshine: 2025.118.151840 -> 2025.122.141614 (#376248)
[NixPkgs.git] / pkgs / by-name / co / committed / package.nix
blob76dffacaac427659ef2c812b68bece2835c246f9
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   rustPlatform,
6   darwin,
7   testers,
8   nix-update-script,
9   committed,
11 let
12   version = "1.1.2";
14 rustPlatform.buildRustPackage {
15   pname = "committed";
16   inherit version;
18   src = fetchFromGitHub {
19     owner = "crate-ci";
20     repo = "committed";
21     tag = "v${version}";
22     hash = "sha256-dBNtzKqaaqJrKMNwamUY0DO9VCVqDyf45lT82nOn8UM=";
23   };
24   cargoHash = "sha256-F+6pTxgr/I3DcDGZsfDjLe0+5wj9Mu7nqghyOzSWlvc=";
26   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
28   passthru = {
29     tests.version = testers.testVersion { package = committed; };
30     updateScript = nix-update-script { };
31   };
33   meta = {
34     homepage = "https://github.com/crate-ci/committed";
35     changelog = "https://github.com/crate-ci/committed/blob/v${version}/CHANGELOG.md";
36     description = "Nitpicking commit history since beabf39";
37     mainProgram = "committed";
38     license = [
39       lib.licenses.asl20 # or
40       lib.licenses.mit
41     ];
42     maintainers = [ lib.maintainers.pigeonf ];
43   };