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

move gen-license to overlay

This commit is contained in:
Ryan Cao 2023-07-21 09:27:40 +08:00
parent cd0afcf585
commit 1b2f94b0db
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
3 changed files with 27 additions and 35 deletions

24
overlays/gen-license.nix Normal file
View file

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