Skip to content
Snippets Groups Projects
Commit 0722e252 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

use flake-utils to define the docs package for all the "default" systems

parent 38874345
No related branches found
No related tags found
No related merge requests found
{ {
"nodes": { "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"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1659446231, "lastModified": 1659446231,
...@@ -18,6 +33,7 @@ ...@@ -18,6 +33,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }
......
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
nixpkgs = { nixpkgs = {
url = github:NixOS/nixpkgs?ref=nixos-21.11; url = github:NixOS/nixpkgs?ref=nixos-21.11;
}; };
}; flake-utils = {
outputs = { self, nixpkgs }: { url = github:numtide/flake-utils;
packages = {
x86_64-linux = {
docs = nixpkgs.legacyPackages.x86_64-linux.callPackage ./docs.nix { };
}; };
}; };
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: {
packages = {
docs = nixpkgs.legacyPackages.${system}.callPackage ./docs.nix { };
}; };
});
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment