diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-04-01 11:33:10 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-04-01 11:33:10 +0200 |
commit | 200175a7011c0602c0a8e6d4c6583d9d577a03d1 (patch) | |
tree | 15ca935a6c86f3628507c28aa07463284cc09b4c /pkgs/build-support | |
parent | 3344cea254129714919142494ec3e9e75aa09891 (diff) | |
download | nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar.gz nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar.bz2 nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar.lz nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar.xz nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.tar.zst nixpkgs-200175a7011c0602c0a8e6d4c6583d9d577a03d1.zip |
config.allowAliases: Define as option
This simplifies usages and makes the default value consistent. In a few cases, the default value was interpreted to be `false`, but this is useless, because virtually nobody will explicitly set `allowAliases = true;`.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/writers/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 0fb9bd939a5..2eb021236f9 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -1,7 +1,7 @@ { pkgs, config, buildPackages, lib, stdenv, libiconv, mkNugetDeps, mkNugetSource, gawk, gnused, gixy }: let - aliases = if (config.allowAliases or true) then (import ./aliases.nix lib) else prev: {}; + aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: {}; writers = with lib; rec { # Base implementation for non-compiled executables. |