Skip to content

Instantly share code, notes, and snippets.

@boj
Created September 12, 2017 10:07
Show Gist options
  • Save boj/eb811e3295522d473edc9c2a840e3506 to your computer and use it in GitHub Desktop.
Save boj/eb811e3295522d473edc9c2a840e3506 to your computer and use it in GitHub Desktop.
Pinning nixpkgs in default.nix
let
config = {
allowUnfree = true;
};
inherit (import <nixpkgs> { }) fetchFromGitHub;
# Current rev points to 17.09-beta
pkgs = import (fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "6a7066eb53685438564dc50362666d0e7f150110";
sha256 = "1psff8lpp5kmihsg7xv46a0d3rmhsb4kyb9w8r213gn8ggigwg57";
}) { inherit config; };
drv = pkgs.haskellPackages.callPackage ./packages.nix { };
in
drv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment