mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
add flake-compat to flake.nix and use sha256 in default.nix
This commit is contained in:
parent
02bf521968
commit
934431d06c
3 changed files with 29 additions and 4 deletions
13
default.nix
13
default.nix
|
@ -1,3 +1,10 @@
|
|||
(import (fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz") {
|
||||
src = ./.;
|
||||
}).defaultNix
|
||||
(import
|
||||
(
|
||||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}
|
||||
)
|
||||
{ src = ./.; }
|
||||
).defaultNix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue