mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
Pin nixpkgs
This commit is contained in:
parent
f2fe84f83e
commit
d34710a046
12
default.nix
12
default.nix
@ -1,4 +1,14 @@
|
||||
{ pkgs ? import <nixpkgs> {} }: let
|
||||
{ rev ? "c542baa0c894796c92a8173dead027f3b952c22e"
|
||||
, pkgs ?
|
||||
if ((rev == "") || (rev == "default") || (rev == "local"))
|
||||
then import <nixpkgs> {}
|
||||
# Do not guard with hash, so the project is able to use current channels (rolling `rev`) of Nixpkgs
|
||||
else import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz") {}
|
||||
// {
|
||||
# Try to build dependencies even if they are marked broken.
|
||||
config.allowBroken = true;
|
||||
}
|
||||
}: let
|
||||
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
|
||||
overrideHaskellPackages = orig: {
|
||||
buildHaskellPackages =
|
||||
|
@ -1,6 +1,6 @@
|
||||
pkgs: hlib: helf: huper: {
|
||||
hnix-store-remote =
|
||||
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { relude = helf.relude_1_0_0_1; }
|
||||
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { }
|
||||
).overrideAttrs (attrs: {
|
||||
buildInputs = attrs.buildInputs ++ [
|
||||
pkgs.nix
|
||||
|
Loading…
Reference in New Issue
Block a user