default.nix: Switch to flake-compat
`package.nix` is kept in sync with the expression in upstream Nixpkgs.
This commit is contained in:
parent
abb74b9f49
commit
7e15450fd2
4 changed files with 45 additions and 58 deletions
|
@ -1,13 +1,7 @@
|
|||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
|
||||
pinned = fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.nixpkgs.locked.narHash;
|
||||
};
|
||||
in import pinned {
|
||||
flake = (import ../flake-compat.nix).defaultNix;
|
||||
in import flake.inputs.nixpkgs.outPath {
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
colmena = final.callPackage ../default.nix { };
|
||||
})
|
||||
flake.overlay
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue