module v3
This commit is contained in:
parent
a8822d7581
commit
127483aa2c
1 changed files with 16 additions and 17 deletions
33
flake.nix
33
flake.nix
|
|
@ -7,21 +7,20 @@
|
||||||
inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
|
inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils";
|
inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils";
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, flake-utils, gomod2nix }:
|
outputs = inputs@{ self, nixpkgs, flake-utils, gomod2nix }:
|
||||||
(flake-utils.lib.eachDefaultSystem
|
(flake-utils.lib.eachDefaultSystem (system:
|
||||||
(system:
|
let
|
||||||
let
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
callPackage =
|
||||||
callPackage = pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage;
|
pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage;
|
||||||
in
|
in {
|
||||||
{
|
packages.default = callPackage ./. {
|
||||||
packages.default = callPackage ./. {
|
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
|
||||||
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
|
};
|
||||||
};
|
devShells.default = callPackage ./shell.nix {
|
||||||
devShells.default = callPackage ./shell.nix {
|
inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix;
|
||||||
inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix;
|
};
|
||||||
};
|
})) // {
|
||||||
nixosModules.default = import ./module.nix inputs;
|
nixosModules.default = import ./module.nix inputs;
|
||||||
})
|
};
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue