1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 16:10:45 +01:00

add license and gen-license package

This commit is contained in:
Ryan Cao 2023-07-20 20:16:09 +08:00
parent 394dd3d31b
commit cd0afcf585
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
3 changed files with 156 additions and 0 deletions

31
pkgs/gen-license.nix Normal file
View file

@ -0,0 +1,31 @@
{
lib,
stdenv,
rustPlatform,
fetchCrate,
darwin,
libiconv,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "gen-license";
version = "0.1.2";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-YZcycLQ436cjr2YTT7TEyMdeLTOl9oEfa5x3lgnnYyo=";
};
cargoLock.lockFile = "${src}/Cargo.lock";
buildInputs =
[]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.CoreFoundation
darwin.apple_sdk_11_0.frameworks.Security
darwin.IOKit
libiconv
];
nativeBuildInputs = [pkg-config];
}