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:
parent
394dd3d31b
commit
cd0afcf585
3 changed files with 156 additions and 0 deletions
31
pkgs/gen-license.nix
Normal file
31
pkgs/gen-license.nix
Normal 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];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue