ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / le / leaf / package.nix
bloba37a9b1c9c37061690462efab65a151c9dc963a0
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   stdenv,
6   darwin,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "leaf";
11   version = "0.2.0";
13   src = fetchFromGitHub {
14     owner = "IogaMaster";
15     repo = "leaf";
16     rev = "v${version}";
17     hash = "sha256-y0NO9YcOO7T7Cqc+/WeactwBAkeUqdCca87afOlO1Bk=";
18   };
20   cargoHash = "sha256-2I0XusAI98WLzGcwEorPmtcK3VkpwpkIn0JKwn3gT1c=";
22   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
23     darwin.apple_sdk.frameworks.CoreFoundation
24     darwin.apple_sdk.frameworks.SystemConfiguration
25   ];
27   meta = with lib; {
28     description = "Simple system fetch written in rust";
29     homepage = "https://github.com/IogaMaster/leaf";
30     license = licenses.mit;
31     maintainers = with maintainers; [ iogamaster ];
32     mainProgram = "leaf";
33   };