Pin nixpkgs

This commit is contained in:
Richard Marko 2022-04-22 12:49:07 +02:00
parent f2fe84f83e
commit d34710a046
2 changed files with 12 additions and 2 deletions

View File

@ -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 =

View File

@ -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