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- { nixpkgs ? < nixpkgs>
1+ { nixpkgs ? import ./nix/ nixpkgs.nix
22, system ? builtins . currentSystem
33} :
44import nixpkgs {
Original file line number Diff line number Diff line change 1313 # Real developers use Linux for development :-p
1414 system = "x86_64-linux" ;
1515
16- pkgs = import nixpkgs {
17- inherit system ;
18- overlays = [ ( import ./overlay.nix ) ] ;
16+ pkgs = import ./. {
17+ inherit nixpkgs system ;
1918 } ;
2019 in
2120 {
Original file line number Diff line number Diff line change 1+ let
2+ # nixpkgs is only used for development. Don't add it to the flake.lock.
3+ gitRev = "500d695aac9ea67195812f309890a911fbc96bda" ;
4+ in
5+ builtins . fetchTarball {
6+ url = "https://github.com/NixOS/nixpkgs/archive/${ gitRev } .tar.gz" ;
7+ sha256 = "sha256-ya3rCWKDbPWMVsh89/Z1mCJ9HFa5/DKdjcgcKkWB1xs=" ;
8+ }
Original file line number Diff line number Diff line change 11#!/usr/bin/env nix-build
22# Used to test the shell
3- { pkgs ? import <nixpkgs> { } } :
4- let
5- mkDevShell = pkgs . callPackage ./. { } ;
6- in
7- mkDevShell . fromTOML ./devshell.toml
3+ { pkgs ? import ./. { } } :
4+ pkgs . mkDevShell . fromTOML ./devshell.toml
You can’t perform that action at this time.
0 commit comments