Remote: deps: use directory (#120)

`which` is excessive, it depends on TH & `shelly` which depends on a lot of things and also `directory`.
This commit is contained in:
Anton Latukha 2021-01-15 02:31:33 +02:00 committed by GitHub
parent 35b8e2c4b8
commit 64453c5195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -87,5 +87,4 @@ test-suite hnix-store-remote-tests
, unix
, unordered-containers
, vector
, which
default-language: Haskell2010

View File

@ -21,7 +21,7 @@ import qualified Data.Text.Lazy.Builder
import qualified Data.Vector
import qualified System.Nix.Derivation
import qualified System.Nix.StorePath
import qualified System.Which
import qualified System.Directory
drvSample :: StorePath -> StorePath -> StorePath -> Derivation StorePath Text
drvSample builder' buildScript out = Derivation {
@ -36,7 +36,7 @@ drvSample builder' buildScript out = Derivation {
withBash :: (StorePath -> MonadStore a) -> MonadStore a
withBash action = do
mfp <- liftIO $ System.Which.which "bash"
mfp <- liftIO $ System.Directory.findExecutable "bash"
case mfp of
Nothing -> error "No bash executable found"
Just fp -> do

View File

@ -8,7 +8,9 @@ pkgs: hlib: helf: huper: {
"-fio-testsuite"
{}
).overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [ pkgs.nix pkgs.which ];
buildInputs = attrs.buildInputs ++ [
pkgs.nix
];
});
# 2020-12-30: NOTE: Remove after switch from cryptohash
cryptohash-sha512 =