evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / co / committed / package.nix
blob229414b14f6822302778a519b2bf3244ad9090c0
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , darwin
6 , testers
7 , nix-update-script
8 , committed
9 }:
10 let
11   version = "1.0.20";
13 rustPlatform.buildRustPackage {
14   pname = "committed";
15   inherit version;
17   src = fetchFromGitHub {
18     owner = "crate-ci";
19     repo = "committed";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-HqZYxV2YjnK7Q3A7B6yVFXME0oc3DZ4RfMkDGa2IQxA=";
22   };
23   cargoHash = "sha256-AmAEGVWq6KxLtiHDGIFVcoP1Wck8z+P9mnDy0SSSJNM=";
25   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
27   passthru = {
28     tests.version = testers.testVersion { package = committed; };
29     updateScript = nix-update-script { };
30   };
32   meta = {
33     homepage = "https://github.com/crate-ci/committed";
34     changelog = "https://github.com/crate-ci/committed/blob/v${version}/CHANGELOG.md";
35     description = "Nitpicking commit history since beabf39";
36     mainProgram = "committed";
37     license = [
38       lib.licenses.asl20 # or
39       lib.licenses.mit
40     ];
41     maintainers = [ lib.maintainers.pigeonf ];
42   };