3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #269266 from IogaMaster/leaf

leaf: init at 0.1.0
This commit is contained in:
Pol Dellaiera 2023-11-29 20:26:30 +01:00 committed by GitHub
commit 93fdb61bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
};
}