overlay.nix: add nix and which pkgs to remote buildInputs

This commit is contained in:
Richard Marko 2020-12-30 14:12:17 +01:00
parent 9826ddbce3
commit cb164907da
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> {} }: let
overlay = import ./overlay.nix pkgs.haskell.lib;
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
overrideHaskellPackages = orig: {
buildHaskellPackages =
orig.buildHaskellPackages.override overrideHaskellPackages;

View File

@ -1,8 +1,15 @@
hlib: helf: huper: {
pkgs: hlib: helf: huper: {
hnix-store-core =
helf.callCabal2nix "hnix-store-core" ./hnix-store-core {};
hnix-store-remote =
helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" {};
(helf.callCabal2nixWithOptions
"hnix-store-remote"
./hnix-store-remote
"-fio-testsuite"
{}
).overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [ pkgs.nix pkgs.which ];
});
# 2020-12-30: NOTE: Remove after switch from cryptohash
cryptohash-sha512 =
hlib.unmarkBroken ( hlib.doJailbreak huper.cryptohash-sha512 );