mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
move gen-license to overlay
This commit is contained in:
parent
cd0afcf585
commit
1b2f94b0db
3 changed files with 27 additions and 35 deletions
|
|
@ -48,6 +48,7 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
nil
|
||||
alejandra
|
||||
nixpkgs-fmt
|
||||
attic-client
|
||||
cachix
|
||||
direnv
|
||||
|
|
@ -80,6 +81,7 @@
|
|||
gh
|
||||
git
|
||||
git-lfs
|
||||
gen-license
|
||||
gum
|
||||
helix
|
||||
hyperfine
|
||||
|
|
@ -102,10 +104,6 @@
|
|||
vivid
|
||||
xh
|
||||
zoxide
|
||||
|
||||
(import ./pkgs/gen-license.nix {
|
||||
inherit (pkgs) lib stdenv rustPlatform fetchCrate darwin libiconv pkg-config;
|
||||
})
|
||||
];
|
||||
|
||||
services.nix-daemon.enable = true;
|
||||
|
|
@ -134,6 +132,7 @@
|
|||
agenix.overlays.default
|
||||
fenix.overlays.default
|
||||
(import ./overlays/ccache-wrapper.nix)
|
||||
(import ./overlays/gen-license.nix)
|
||||
];
|
||||
|
||||
config.allowUnfree = true;
|
||||
|
|
|
|||
24
overlays/gen-license.nix
Normal file
24
overlays/gen-license.nix
Normal 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];
|
||||
};
|
||||
})
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
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