flake: no more utils

This commit is contained in:
Artemis Tosini 2024-11-21 21:39:44 +00:00
parent 54abcdc177
commit c873be5ed5
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 17 additions and 55 deletions

View file

@ -17,41 +17,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs"
"utils": "utils"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
} }
} }
}, },

View file

@ -1,32 +1,28 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs";
utils.url = "github:numtide/flake-utils";
}; };
outputs = outputs =
{ { self, nixpkgs }:
self,
nixpkgs,
utils,
}:
(utils.lib.eachDefaultSystem (
system:
let let
pkgs = import nixpkgs { lib = nixpkgs.lib;
makePkgs =
system:
import nixpkgs {
inherit system; inherit system;
overlays = [ self.overlays.default ]; overlays = [ self.overlays.default ];
}; };
forAllSystems = f: lib.genAttrs lib.systems.flakeExposed (system: f (makePkgs system));
in in
{ {
formatter = pkgs.nixfmt-rfc-style; formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
packages.default = pkgs.artemist-blog; packages = forAllSystems (pkgs: {
devShells.default = pkgs.mkShell { default = pkgs.artemist-blog;
buildInputs = pkgs.artemist-blog.buildInputs ++ (with pkgs; [ bundix ]); });
}; devShells = forAllSystems (pkgs: {
} default = pkgs.mkShell { buildInputs = pkgs.artemist-blog.buildInputs ++ (with pkgs; [ bundix ]); };
)) });
// {
overlays.default = final: prev: { overlays.default = final: prev: {
artemist-blog = artemist-blog =
let let