default.nix: Switch to flake-compat

`package.nix` is kept in sync with the expression in upstream Nixpkgs.
This commit is contained in:
Zhaofeng Li 2022-01-21 00:45:12 -08:00
parent abb74b9f49
commit 7e15450fd2
4 changed files with 45 additions and 58 deletions

View file

@ -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
];
}