allow customising nix version
This commit is contained in:
parent
b1c4471b95
commit
55c173bd44
1 changed files with 23 additions and 17 deletions
40
flake.nix
40
flake.nix
|
|
@ -15,10 +15,12 @@
|
|||
in
|
||||
{
|
||||
nixosModules.default =
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [ ./module.nix ];
|
||||
nix.shorturls.package = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
nix.shorturls.package = (
|
||||
self.packages.${pkgs.stdenv.hostPlatform.system}.default { nix = config.nix.package; }
|
||||
);
|
||||
};
|
||||
|
||||
packages = forAllSystems (
|
||||
|
|
@ -27,23 +29,27 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
default = pkgs.stdenv.mkDerivation {
|
||||
pname = "nix-shorturl-plugin";
|
||||
version = "0.1.0";
|
||||
src = self;
|
||||
default =
|
||||
{
|
||||
nix ? pkgs.nix,
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "nix-shorturl-plugin";
|
||||
version = "0.1.0";
|
||||
src = self;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
nix.dev
|
||||
nlohmann_json
|
||||
boost
|
||||
];
|
||||
};
|
||||
buildInputs = with pkgs; [
|
||||
nix.dev
|
||||
nlohmann_json
|
||||
boost
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue