Merge request #748 shell.nix: use Haskell notation, explicit attrs

This commit is contained in:
Anton Latukha 2020-11-18 23:47:06 +02:00 committed by GitHub
commit 484f4dac4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -76,8 +76,8 @@
, executableNamesToShellComplete ? [ "hnix" ]
# Include Hoogle into derivation
, withHoogle ? true
# Include Hoogle executable and DB into derivation
, withHoogle ? false
# Nix by default updates and uses locally configured nixpkgs-unstable channel

View File

@ -1 +1,7 @@
{} @ attrs: (import ./. attrs).env
attrs@{...}:
let defaultAttrs = {
# Defaults are put in this form deliberately. Details: #748
withHoogle = true;
compiler = "ghc8101";
};
in (import ./. (defaultAttrs // attrs)).env