Skip to content

Commit

Permalink
XXX: examples of using overlays in niv
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpj committed Nov 5, 2019
1 parent 8e279a7 commit a0cb3a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 9 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{ sources ? import ./nix/sources.nix {}
let
overlay = self: super: {
nixpkgs = super.nixpkgs-renamed;
__fetchers = super.__fetchers // {
fetchgit = {url, sha256}@attrs: (import self.nixpkgs {}).fetchgit attrs;
};
};
in
{ sources ? import ./nix/sources.nix { overlays = [overlay]; }
, pkgs ? import ./nix { inherit sources; }
}:

Expand Down
7 changes: 3 additions & 4 deletions nix/sources.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"nixpkgs": {
"nixpkgs-renamed": {
"branch": "nixos-19.03",
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
"homepage": "https://github.com/NixOS/nixpkgs",
Expand All @@ -19,8 +19,7 @@
"repo": "termtosvg",
"rev": "b97cc0132073111cec37f64c95539e869202ff99",
"sha256": "1c86622sda98zm3q3dzwmm37i09yca661kn860svl191nqbh2l68",
"type": "tarball",
"url": "https://github.com/nbedos/termtosvg/archive/b97cc0132073111cec37f64c95539e869202ff99.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"type": "fetchgit",
"url": "https://github.com/nbedos/termtosvg.git"
}
}
1 change: 0 additions & 1 deletion script/test
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -I nixpkgs=./nix
#!nix-shell -p nix
#!nix-shell --pure
#!nix-shell --keep SSL_CERT_FILE
Expand Down

0 comments on commit a0cb3a5

Please sign in to comment.