evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / le / leaf / package.nix
blob1bd44f23d30490070131fe9d592370c5200fbbc3
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "leaf";
10   version = "0.2.0";
12   src = fetchFromGitHub {
13     owner = "IogaMaster";
14     repo = "leaf";
15     rev = "v${version}";
16     hash = "sha256-y0NO9YcOO7T7Cqc+/WeactwBAkeUqdCca87afOlO1Bk=";
17   };
19   cargoHash = "sha256-2I0XusAI98WLzGcwEorPmtcK3VkpwpkIn0JKwn3gT1c=";
21   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
22     darwin.apple_sdk.frameworks.CoreFoundation
23     darwin.apple_sdk.frameworks.SystemConfiguration
24   ];
26   meta = with lib; {
27     description = "Simple system fetch written in rust";
28     homepage = "https://github.com/IogaMaster/leaf";
29     license = licenses.mit;
30     maintainers = with maintainers; [ iogamaster ];
31     mainProgram = "leaf";
32   };