From 25599afd79c86f798c5599b446f64e76dee749df Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Wed, 22 Nov 2023 12:36:44 -0700 Subject: [PATCH] leaf: init at 0.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/IogaMaster/leaf Update package.nix Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com> --- pkgs/by-name/le/leaf/package.nix | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/le/leaf/package.nix diff --git a/pkgs/by-name/le/leaf/package.nix b/pkgs/by-name/le/leaf/package.nix new file mode 100644 index 000000000000..48055ae97c23 --- /dev/null +++ b/pkgs/by-name/le/leaf/package.nix @@ -0,0 +1,33 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "leaf"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "IogaMaster"; + repo = "leaf"; + rev = "v${version}"; + hash = "sha256-FbvXH0DXA+XvZuWZ7iJi4PqgoPv5qy5SWdXFlfBSmlM="; + }; + + cargoHash = "sha256-CsO3JzL5IqxGpj9EbbuDmmarzYpLFmmekX0W9mAQSzI="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreFoundation + darwin.apple_sdk.frameworks.SystemConfiguration + ]; + + meta = with lib; { + description = "A simple system fetch written in rust"; + homepage = "https://github.com/IogaMaster/leaf"; + license = licenses.mit; + maintainers = with maintainers; [ iogamaster ]; + mainProgram = "leaf"; + }; +}