Skip to content

Commit

Permalink
Use pinned nixpkgs in release.nix too
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Nov 3, 2020
1 parent 8d2e3d7 commit e3a8104
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 1 addition & 5 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{ nixpkgsSrc ? builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/50a8d606f3527b88fbd9f68048944470c1b900cd.tar.gz"; # haskell-updates
sha256 = "07xlglmlhf3q6h8cdi3rfg4b0jk70h42kwpgwdh5b1vz149njins";
}, pkgs ? import nixpkgsSrc { }, compiler ? null, hoogle ? true
{ pkgs ? import ./nixpkgs.nix, compiler ? null, hoogle ? true
, forShell ? pkgs.lib.inNixShell }:

let
Expand Down
9 changes: 9 additions & 0 deletions nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
let
nixpkgsSrc = builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/50a8d606f3527b88fbd9f68048944470c1b900cd.tar.gz"; # haskell-updates
sha256 = "07xlglmlhf3q6h8cdi3rfg4b0jk70h42kwpgwdh5b1vz149njins";
};

in import nixpkgsSrc { }

2 changes: 1 addition & 1 deletion release.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> { }, compiler ? "ghc884" }:
{ pkgs ? import ./nixpkgs.nix, compiler ? "ghc884" }:

with pkgs.haskell.lib;

Expand Down

0 comments on commit e3a8104

Please sign in to comment.