Remove flake-utils dependency

See also:
4f399bd5c4/flake.nix (L14)
17198cf5ae
This commit is contained in:
Joscha 2023-04-14 22:18:39 +02:00
parent 674534dfa4
commit d2e3e2aef9
3 changed files with 16 additions and 26 deletions

View file

@ -14,6 +14,9 @@ Procedure when bumping the version number:
## Unreleased
### Changed
- Simplified flake dependencies
## v0.6.1 - 2023-04-10
### Changed

16
flake.lock generated
View file

@ -1,20 +1,5 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1678901627,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"naersk": {
"inputs": {
"nixpkgs": [
@ -52,7 +37,6 @@
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"naersk": "naersk",
"nixpkgs": "nixpkgs"
}

View file

@ -3,19 +3,22 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
naersk.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, naersk }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk' = pkgs.callPackage naersk { };
in
rec {
packages.default = naersk'.buildPackage { src = ./.; };
}
);
outputs = { self, nixpkgs, naersk }:
let forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in {
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
naersk' = pkgs.callPackage naersk { };
in
{
default = naersk'.buildPackage { src = ./.; };
}
);
};
}