Skip to content

Commit

Permalink
Pin nixpkgs to latest 18.09.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmcmiddlin committed Apr 8, 2019
1 parent 2cff1c7 commit 0fa8e1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
{ nixpkgs ? import ./nix/nixpkgs.nix
, compiler ? "default"
}:

let
inherit (nixpkgs) pkgs;
Expand Down
7 changes: 7 additions & 0 deletions nix/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "nixos-18.09-2019-04-08";
url = https://github.com/nixos/nixpkgs;
# `git ls-remote https://github.com/nixos/nixpkgs-channels nixos-18.09`
rev = "222950952f15f6b1e9f036b80440b597f23e652d";
}) {}
4 changes: 3 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default"}:
{ nixpkgs ? import ./nix/nixpkgs.nix
, compiler ? "default"
}:
let
inherit (nixpkgs) pkgs;
drv = import ./default.nix { inherit nixpkgs compiler; };
Expand Down

0 comments on commit 0fa8e1f

Please sign in to comment.