File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ( import (
2+ let
3+ lock = builtins . fromJSON ( builtins . readFile ./flake.lock ) ;
4+ nodeName = lock . nodes . root . inputs . flake-compat ;
5+ in
6+ fetchTarball {
7+ url =
8+ lock . nodes . ${ nodeName } . locked . url
9+ or "https://github.com/edolstra/flake-compat/archive/${ lock . nodes . ${ nodeName } . locked . rev } .tar.gz" ;
10+ sha256 = lock . nodes . ${ nodeName } . locked . narHash ;
11+ }
12+ ) { src = ./. ; } ) . defaultNix
Original file line number Diff line number Diff line change 66 nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable" ;
77 nixpkgs-master . url = "github:NixOS/nixpkgs" ;
88 nixpkgs-unstable . url = "github:nixos/nixpkgs/nixpkgs-unstable" ;
9+ flake-compat . url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" ;
910
1011 flake-parts = {
1112 url = "github:hercules-ci/flake-parts" ;
Original file line number Diff line number Diff line change 1+ ( import (
2+ let
3+ lock = builtins . fromJSON ( builtins . readFile ./flake.lock ) ;
4+ nodeName = lock . nodes . root . inputs . flake-compat ;
5+ in
6+ fetchTarball {
7+ url =
8+ lock . nodes . ${ nodeName } . locked . url
9+ or "https://github.com/edolstra/flake-compat/archive/${ lock . nodes . ${ nodeName } . locked . rev } .tar.gz" ;
10+ sha256 = lock . nodes . ${ nodeName } . locked . narHash ;
11+ }
12+ ) { src = ./. ; } ) . shellNix
You can’t perform that action at this time.
0 commit comments