pkgs: remove optional builtins prefixes from prelude functions

Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
This commit is contained in:
NAHO 2025-09-30 08:49:04 +02:00
parent 0fe515d371
commit c8d4dabc43
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185
390 changed files with 568 additions and 597 deletions

View file

@ -55,7 +55,7 @@ mkDerivation rec {
# TODO: The tests are failing because it can't locate QT plugins. Is there a better way to do this?
+ (builtins.concatStringsSep "\n" (
lib.lists.flatten (
builtins.map (pkg: [
map (pkg: [
(lib.optionalString (pkg ? qtPluginPrefix) ''
export QT_PLUGIN_PATH="${pkg}/${pkg.qtPluginPrefix}"''${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH
'')

View file

@ -84,7 +84,7 @@ let
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv -t $out/bin ${builtins.concatStringsSep " " (builtins.map (dir: "Pianoteq*/${dir}/*") archdirs)}
mv -t $out/bin ${builtins.concatStringsSep " " (map (dir: "Pianoteq*/${dir}/*") archdirs)}
install -Dm644 ${./pianoteq.svg} $out/share/icons/hicolor/scalable/apps/pianoteq.svg
for size in 16 22 32 48 64 128 256; do
dir=$out/share/icons/hicolor/"$size"x"$size"/apps

View file

@ -19,7 +19,7 @@ vendorhash() {
findpath() {
path="$(nix --extra-experimental-features nix-command eval --json --impure -f "$nixpkgs" "$1.meta.position" | jq -r . | cut -d: -f1)"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "builtins.fetchGit \"$nixpkgs\"")"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "fetchGit \"$nixpkgs\"")"
if [ -n "$outpath" ]; then
path="${path/$(echo "$outpath" | jq -r .)/$nixpkgs}"

View file

@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
echo "OK"
'';
in
builtins.concatStringsSep "\n" (builtins.map script builderKeys);
builtins.concatStringsSep "\n" (map script builderKeys);
in
''
pushd $(mktemp -d)

View file

@ -109,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: {
echo "OK"
'';
in
builtins.concatStringsSep "\n" (builtins.map script builderKeys);
builtins.concatStringsSep "\n" (map script builderKeys);
in
''
pushd $(mktemp -d)

View file

@ -21,8 +21,8 @@
let
appPythonDeps = builtins.map (item: item.eafPythonDeps) enabledApps;
appOtherDeps = builtins.map (item: item.eafOtherDeps) enabledApps;
appPythonDeps = map (item: item.eafPythonDeps) enabledApps;
appOtherDeps = map (item: item.eafOtherDeps) enabledApps;
pythonPackageLists = [
(
@ -38,7 +38,7 @@ let
)
]
++ appPythonDeps;
pythonPkgs = ps: builtins.concatLists (builtins.map (f: f ps) pythonPackageLists);
pythonPkgs = ps: builtins.concatLists (map (f: f ps) pythonPackageLists);
pythonEnv = python3.withPackages pythonPkgs;
otherPackageLists = [

View file

@ -172,7 +172,7 @@ stdenv.mkDerivation (finalAttrs: {
{
backendPath = (
lib.concatStringsSep " " (
builtins.map (x: ''"-B${x}"'') (
map (x: ''"-B${x}"'') (
[
# Paths necessary so the JIT compiler finds its libraries:
"${lib.getLib libgccjit}/lib"

View file

@ -59,7 +59,7 @@ in
plugins-for =
with lib.asserts;
ide:
builtins.map (plugin: plugin.name) (
map (plugin: plugin.name) (
builtins.filter (
plugin:
(

View file

@ -185,7 +185,7 @@ let
mkRepoEntry = entry: {
name = ".m2/repository/" + entry.path;
path = fetchurl {
urls = builtins.map (url: "${url}/${entry.url}") repositories;
urls = map (url: "${url}/${entry.url}") repositories;
sha256 = entry.hash;
};
};

View file

@ -18,7 +18,7 @@ rec {
{
extraClasspaths ? [ ],
}:
(builtins.map (dep: if builtins.hasAttr "jar" dep.path then dep.path.jar else dep.path) packages)
(map (dep: if builtins.hasAttr "jar" dep.path then dep.path.jar else dep.path) packages)
++ extraClasspaths;
makeClasspaths =
{

View file

@ -18,7 +18,7 @@ rec {
...
}:
stdenv.mkDerivation (
(builtins.removeAttrs attrs [
(removeAttrs attrs [
"namePrefix"
"path"
])

View file

@ -230,7 +230,7 @@ let
nvimGrammars = lib.mapAttrsToList (
name: value:
value.origGrammar
or (builtins.throw "additions to `pkgs.vimPlugins.nvim-treesitter.grammarPlugins` set should be passed through `pkgs.neovimUtils.grammarToPlugin` first")
or (throw "additions to `pkgs.vimPlugins.nvim-treesitter.grammarPlugins` set should be passed through `pkgs.neovimUtils.grammarToPlugin` first")
) vimPlugins.nvim-treesitter.grammarPlugins;
isNvimGrammar = x: builtins.elem x nvimGrammars;

View file

@ -42,7 +42,7 @@ let
];
downloadUrl = "https://download.sublimetext.com/sublime_text_3_build_${buildVersion}_${arch}.tar.bz2";
versionUrl = "https://download.sublimetext.com/latest/${if dev then "dev" else "stable"}";
versionFile = builtins.toString ./packages.nix;
versionFile = toString ./packages.nix;
archSha256 = if stdenv.hostPlatform.system == "i686-linux" then x32sha256 else x64sha256;
arch = if stdenv.hostPlatform.system == "i686-linux" then "x32" else "x64";

View file

@ -46,7 +46,7 @@ let
downloadUrl =
arch: "https://download.sublimetext.com/sublime_text_build_${buildVersion}_${arch}.tar.xz";
versionUrl = "https://download.sublimetext.com/latest/${if dev then "dev" else "stable"}";
versionFile = builtins.toString ./packages.nix;
versionFile = toString ./packages.nix;
neededLibraries = [
xorg.libX11

View file

@ -111,7 +111,7 @@ in
tree-sitter-queries-are-present-for-custom-grammars =
let
pluginsToCheck =
builtins.map (grammar: grammarToPlugin grammar)
map (grammar: grammarToPlugin grammar)
# true is here because there is `recurseForDerivations = true`
(lib.remove true (lib.attrValues tree-sitter-grammars));
in

View file

@ -202,7 +202,7 @@ let
startWithDeps = findDependenciesRecursively start;
allPlugins = lib.unique (startWithDeps ++ depsOfOptionalPlugins);
allPython3Dependencies =
ps: lib.flatten (builtins.map (plugin: (plugin.python3Dependencies or (_: [ ])) ps) allPlugins);
ps: lib.flatten (map (plugin: (plugin.python3Dependencies or (_: [ ])) ps) allPlugins);
python3Env = python3.withPackages allPython3Dependencies;
packdirStart = vimFarm "pack/${packageName}/start" "packdir-start" allPlugins;

View file

@ -24,7 +24,7 @@ let
)'';
createEmptySettingsCmd = ''mkdir -p .vscode && echo "{}" > ${vscodeSettingsFile}'';
fileName = builtins.baseNameOf vscodeSettingsFile;
fileName = baseNameOf vscodeSettingsFile;
symlinkFromUserSettingCmd = lib.optionalString symlinkFromUserSetting ''&& mkdir -p "${userSettingsFolder}" && ln -sfv "$(pwd)/${vscodeSettingsFile}" "${userSettingsFolder}/" '';
in

View file

@ -127,7 +127,7 @@ let
extensionFromVscodeMarketplace = mktplcExtRefToExtDrv;
extensionsFromVscodeMarketplace =
mktplcExtRefList: builtins.map extensionFromVscodeMarketplace mktplcExtRefList;
mktplcExtRefList: map extensionFromVscodeMarketplace mktplcExtRefList;
vscodeWithConfiguration = import ./vscodeWithConfiguration.nix {
inherit lib extensionsFromVscodeMarketplace writeShellScriptBin;

View file

@ -169,7 +169,7 @@ stdenv.mkDerivation (finalAttrs: {
rmdir $out/share/sane/epjitsu
ln -svT ${scanSnapDriversPackage} $out/share/sane/epjitsu
''
+ lib.concatStrings (builtins.map installFirmware compatFirmware);
+ lib.concatStrings (map installFirmware compatFirmware);
# parallel install creates a bad symlink at $out/lib/sane/libsane.so.1 which prevents finding plugins
# https://github.com/NixOS/nixpkgs/issues/224569

View file

@ -26,7 +26,7 @@ let
# TODO: Should we move this to `lib`? Seems like its would be useful in many cases.
extensionOf =
filePath: lib.concatStringsSep "." (lib.tail (lib.splitString "." (builtins.baseNameOf filePath)));
filePath: lib.concatStringsSep "." (lib.tail (lib.splitString "." (baseNameOf filePath)));
installIcons =
iconName: icons:

View file

@ -256,7 +256,7 @@ let
''
else
''
mkdir -p ${builtins.dirOf path}
mkdir -p ${dirOf path}
cp -r ${dep}/. ${path}
''
)

View file

@ -76,7 +76,7 @@ let
# PCSC-Lite daemon (services.pcscd) also must be enabled for firefox to access smartcards
smartcardSupport = cfg.smartcardSupport or false;
allNativeMessagingHosts = builtins.map lib.getBin nativeMessagingHosts;
allNativeMessagingHosts = map lib.getBin nativeMessagingHosts;
libs =
lib.optionals stdenv.hostPlatform.isLinux (
@ -130,7 +130,7 @@ let
usesNixExtensions = nixExtensions != null;
nameArray = builtins.map (a: a.name) (lib.optionals usesNixExtensions nixExtensions);
nameArray = map (a: a.name) (lib.optionals usesNixExtensions nixExtensions);
# Check that every extension has a unique .name attribute
# and an extid attribute
@ -140,7 +140,7 @@ let
else if browser.requireSigning || !browser.allowAddonSideload then
throw "Nix addons are only supported with signature enforcement disabled and addon sideloading enabled (eg. LibreWolf)"
else
builtins.map (
map (
a:
if !(builtins.hasAttr "extid" a) then
throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchFirefoxAddon"
@ -516,7 +516,7 @@ let
rm -f "$POL_PATH"
cat ${policiesJson} >> "$POL_PATH"
extraPoliciesFiles=(${builtins.toString extraPoliciesFiles})
extraPoliciesFiles=(${toString extraPoliciesFiles})
for extraPoliciesFile in "''${extraPoliciesFiles[@]}"; do
jq -s '.[0] * .[1]' $extraPoliciesFile "$POL_PATH" > .tmp.json
mv .tmp.json "$POL_PATH"
@ -533,7 +533,7 @@ let
${mozillaCfg}
EOF
extraPrefsFiles=(${builtins.toString extraPrefsFiles})
extraPrefsFiles=(${toString extraPrefsFiles})
for extraPrefsFile in "''${extraPrefsFiles[@]}"; do
cat "$extraPrefsFile" >> "$libDir/mozilla.cfg"
done

View file

@ -129,11 +129,11 @@ let
# bundled into the k3s binary
traefik = {
chart = fetchurl chartVersions.traefik;
name = builtins.baseNameOf chartVersions.traefik.url;
name = baseNameOf chartVersions.traefik.url;
};
traefik-crd = {
chart = fetchurl chartVersions.traefik-crd;
name = builtins.baseNameOf chartVersions.traefik-crd.url;
name = baseNameOf chartVersions.traefik-crd.url;
};
# a shortcut that provides the images archive for the host platform. Currently only supports

View file

@ -9,7 +9,7 @@ let
# let k3s_1_23 = (callPackage ./path/to/k3s {
# commonK3sArg = ....
# }).k3s_1_23;
extraArgs = builtins.removeAttrs args [ "callPackage" ];
extraArgs = removeAttrs args [ "callPackage" ];
in
{
k3s_1_31 = common (

View file

@ -14,7 +14,7 @@ let
...
}@attrs:
let
attrs' = builtins.removeAttrs attrs [
attrs' = removeAttrs attrs [
"version"
"sha256"
"rev"

View file

@ -18,7 +18,7 @@ let
...
}@attrs:
let
attrs' = builtins.removeAttrs attrs [
attrs' = removeAttrs attrs [
"buildGoModule"
"version"
"hash"

View file

@ -2,7 +2,7 @@
let
common = opts: callPackage (import ./builder.nix lib opts);
extraArgs = builtins.removeAttrs args [ "callPackage" ];
extraArgs = removeAttrs args [ "callPackage" ];
in
rec {
rke2_1_30 = common (

View file

@ -21,7 +21,7 @@ let
...
}@attrs:
let
attrs' = builtins.removeAttrs attrs [
attrs' = removeAttrs attrs [
"version"
"hash"
"vendorHash"

View file

@ -40,7 +40,7 @@
...
}@args:
let
cleanedArgs = builtins.removeAttrs args [
cleanedArgs = removeAttrs args [
"pname"
"name"
"version"

View file

@ -19,7 +19,7 @@ let
{
# Do not include PHP by default, because it bloats the closure, doesn't
# build on Darwin, and there are no official PHP scripts.
plugins = builtins.attrValues (builtins.removeAttrs availablePlugins [ "php" ]);
plugins = builtins.attrValues (removeAttrs availablePlugins [ "php" ]);
},
}:
@ -122,7 +122,7 @@ let
ln -sf ${weechat}/share $out/share
'')
];
meta = builtins.removeAttrs weechat.meta [ "outputsToInstall" ];
meta = removeAttrs weechat.meta [ "outputsToInstall" ];
};
in

View file

@ -95,7 +95,7 @@ python3Packages.buildPythonApplication rec {
# Actually install plugins
postInstall = ''
for plug in ${builtins.toString userPlugins}; do
for plug in ${toString userPlugins}; do
lndir $plug/${python3Packages.python.sitePackages} $out/${python3Packages.python.sitePackages}
done
'';

View file

@ -7,5 +7,5 @@ callPackage ../../browsers/firefox/update.nix (
{
baseUrl = "https://archive.mozilla.org/pub/thunderbird/releases/";
}
// (builtins.removeAttrs args [ "callPackage" ])
// (removeAttrs args [ "callPackage" ])
)

View file

@ -57,8 +57,8 @@ stdenvNoCC.mkDerivation {
passthru.updateScript =
let
defaultNixFile = builtins.toString ./default.nix;
updateNix = builtins.toString ./update.nix;
defaultNixFile = toString ./default.nix;
updateNix = toString ./update.nix;
aarch64Url = dist."aarch64-darwin".url;
x86_64Url = dist."x86_64-darwin".url;
in

View file

@ -67,13 +67,11 @@ let
"--prefix"
"QT_PLUGIN_PATH"
":"
"${lib.makeSearchPath unwrapped.qtbase.qtPluginPrefix (
builtins.map lib.getBin unwrapped.qtPackages
)}"
"${lib.makeSearchPath unwrapped.qtbase.qtPluginPrefix (map lib.getBin unwrapped.qtPackages)}"
"--prefix"
"QML2_IMPORT_PATH"
":"
"${lib.makeSearchPath unwrapped.qtbase.qtQmlPrefix (builtins.map lib.getBin unwrapped.qmlPackages)}"
"${lib.makeSearchPath unwrapped.qtbase.qtQmlPrefix (map lib.getBin unwrapped.qmlPackages)}"
]
++ [
# Add dictionaries from all NIX_PROFILES

View file

@ -67,7 +67,7 @@ let
(unwrapped.python.pkgs.toPythonModule unwrapped.passthru.uhd)
]
# Add the extraPackages as python modules as well
++ (builtins.map unwrapped.python.pkgs.toPythonModule extraPackages)
++ (map unwrapped.python.pkgs.toPythonModule extraPackages)
++ lib.flatten (
lib.mapAttrsToList (
feat: info:
@ -167,7 +167,7 @@ let
"QT_PLUGIN_PATH"
":"
"${lib.makeSearchPath unwrapped.qt.qtbase.qtPluginPrefix (
builtins.map lib.getBin (
map lib.getBin (
[
unwrapped.qt.qtbase
]
@ -180,7 +180,7 @@ let
"QML2_IMPORT_PATH"
":"
"${lib.makeSearchPath unwrapped.qt.qtbase.qtQmlPrefix (
builtins.map lib.getBin (
map lib.getBin (
[
unwrapped.qt.qtbase
]
@ -225,7 +225,7 @@ let
lndir -silent ${unwrapped}
${lib.optionalString (extraPackages != [ ]) (
builtins.concatStringsSep "\n" (
builtins.map (pkg: ''
map (pkg: ''
if [[ -d ${lib.getBin pkg}/bin/ ]]; then
lndir -silent ${pkg}/bin ./bin
fi

View file

@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
--replace "qe_git_submodule_update(external/d3q)" "" \
--replace "qe_git_submodule_update(external/qe-gipaw)" ""
${builtins.toString (
${toString (
builtins.attrValues (
builtins.mapAttrs (name: val: ''
cp -r ${val}/* external/${name}/.

View file

@ -45,7 +45,7 @@ let
downloadUrl =
arch: "https://download.sublimetext.com/sublime_merge_build_${buildVersion}_${arch}.tar.xz";
versionUrl = "https://www.sublimemerge.com/${if dev then "dev" else "download"}";
versionFile = builtins.toString ./default.nix;
versionFile = toString ./default.nix;
neededLibraries = [
xorg.libX11

View file

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
package: "--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${lib.getLib package}/lib/gstreamer-1.0";
in
with gst_all_1;
builtins.map gstreamerHook [
map gstreamerHook [
gstreamer
gst-plugins-base
gst-plugins-bad

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
package: "--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${lib.getLib package}/lib/gstreamer-1.0";
in
with gst_all_1;
builtins.map gstreamerHook [
map gstreamerHook [
gstreamer
gst-plugins-base
gst-plugins-bad

View file

@ -33,7 +33,7 @@ runCommand cri-o-unwrapped.name
preferLocalBuild = true;
meta = builtins.removeAttrs cri-o-unwrapped.meta [ "outputsToInstall" ];
meta = removeAttrs cri-o-unwrapped.meta [ "outputsToInstall" ];
outputs = [
"out"

View file

@ -481,7 +481,7 @@ stdenvNoCC.mkDerivation {
libc_dev
libc_lib
;
default_hardening_flags_str = builtins.toString defaultHardeningFlags;
default_hardening_flags_str = toString defaultHardeningFlags;
}
// lib.mapAttrs (_: lib.optionalString targetPlatform.isDarwin) {
# These will become empty strings when not targeting Darwin.

View file

@ -79,7 +79,7 @@ lib.makeOverridable (
[ drv ]
)
# Add any extra outputs specified by the caller of `buildEnv`.
++ lib.filter (p: p != null) (builtins.map (outName: drv.${outName} or null) extraOutputsToInstall);
++ lib.filter (p: p != null) (map (outName: drv.${outName} or null) extraOutputsToInstall);
priority = drv.meta.priority or lib.meta.defaultPriority;
}) paths;

View file

@ -980,7 +980,7 @@ stdenvNoCC.mkDerivation {
inherit suffixSalt coreutils_bin bintools;
inherit libc_bin libc_dev libc_lib;
inherit darwinPlatformForCC;
default_hardening_flags_str = builtins.toString defaultHardeningFlags;
default_hardening_flags_str = toString defaultHardeningFlags;
inherit useMacroPrefixMap;
}
// lib.mapAttrs (_: lib.optionalString targetPlatform.isDarwin) {

View file

@ -66,7 +66,7 @@ let
in
lib.assertMsg (
matches == 1
) "compressor ${ext} needs to have exactly one '{}', found ${builtins.toString matches}";
) "compressor ${ext} needs to have exactly one '{}', found ${toString matches}";
mkCmd =
ext: prog:
assert validProg ext prog;

View file

@ -68,7 +68,7 @@ let
{
ext = "tar.gz";
fmt = "tarball";
fetchfun = builtins.fetchTarball;
fetchfun = fetchTarball;
};
in
with kind;

View file

@ -130,7 +130,7 @@ let
baseDerivation = stdenv.mkDerivation (
finalAttrs:
(builtins.removeAttrs args [
(removeAttrs args [
"gitHashes"
"sdkSourceBuilders"
"pubspecLock"

View file

@ -582,7 +582,7 @@ rec {
...
}@args:
let
stream = streamLayeredImage (builtins.removeAttrs args [ "compressor" ]);
stream = streamLayeredImage (removeAttrs args [ "compressor" ]);
compress = compressorForImage compressor name;
in
runCommand "${baseNameOf name}.tar${compress.ext}" {
@ -1043,8 +1043,8 @@ rec {
);
contentsList = if builtins.isList contents then contents else [ contents ];
bind-paths = builtins.toString (
builtins.map (path: "--bind=${path}:${path}!") [
bind-paths = toString (
map (path: "--bind=${path}:${path}!") [
"/dev/"
"/proc/"
"/sys/"
@ -1413,7 +1413,7 @@ rec {
...
}@args:
let
stream = streamNixShellImage (builtins.removeAttrs args [ "compressor" ]);
stream = streamNixShellImage (removeAttrs args [ "compressor" ]);
compress = compressorForImage compressor drv.name;
in
runCommand "${drv.name}-env.tar${compress.ext}" {

View file

@ -699,7 +699,7 @@ rec {
" --program-prefix=layeredImageWithFakeRootCommands-"
];
doCheck = false;
versionCheckProgram = "${builtins.placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
meta = prevAttrs.meta // {
mainProgram = "layeredImageWithFakeRootCommands-hello";
};

View file

@ -49,7 +49,7 @@ let
assert (lib.isPath nugetDeps);
callPackage nugetDeps { fetchNuGet = fetchNupkg; }
else
builtins.map fetchNupkg (lib.importJSON nugetDeps);
map fetchNupkg (lib.importJSON nugetDeps);
finalPackage = finalAttrs.finalPackage;

View file

@ -122,4 +122,4 @@ let
'';
};
in
stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "nativeBuildInputs" ]))
stdenv.mkDerivation (attrs // (removeAttrs attrsOrig [ "nativeBuildInputs" ]))

View file

@ -21,7 +21,7 @@ lib.makeOverridable (
assert (lib.isPath sourceFile);
import sourceFile
else
{ fetchNuGet }: builtins.map fetchNuGet (lib.importJSON sourceFile);
{ fetchNuGet }: map fetchNuGet (lib.importJSON sourceFile);
in
loadDeps {
fetchNuGet = args: fetchNupkg (args // { inherit installable; });

View file

@ -29,10 +29,10 @@ assert null == lib.findFirst (c: "/" == c) null (lib.stringToCharacters imageNam
let
# Abuse paths to collapse possible double slashes
repoTag0 = builtins.toString (/. + "/${stripScheme registry}/${repository}/${imageName}");
repoTag0 = toString (/. + "/${stripScheme registry}/${repository}/${imageName}");
repoTag1 = lib.removePrefix "/" repoTag0;
layers = builtins.map stripNixStore imageLayers;
layers = map stripNixStore imageLayers;
manifest = writeText "manifest.json" (
builtins.toJSON [

View file

@ -66,7 +66,7 @@ let
else
map mkJarUrl repos;
jar = fetchurl (
builtins.removeAttrs args [
removeAttrs args [
"groupId"
"artifactId"
"version"

View file

@ -88,8 +88,8 @@ lib.throwIfNot (excludes == [ ] || includes == [ ])
filterdiff \
-p1 \
${builtins.toString (builtins.map (x: "-x ${lib.escapeShellArg x}") excludes)} \
${builtins.toString (builtins.map (x: "-i ${lib.escapeShellArg x}") includes)} \
${toString (map (x: "-x ${lib.escapeShellArg x}") excludes)} \
${toString (map (x: "-i ${lib.escapeShellArg x}") includes)} \
"$tmpfile" > "$out"
if [ ! -s "$out" ]; then
@ -106,7 +106,7 @@ lib.throwIfNot (excludes == [ ] || includes == [ ])
''
+ postFetch;
}
// builtins.removeAttrs args [
// removeAttrs args [
"relative"
"stripLen"
"decode"

View file

@ -43,7 +43,7 @@ let
);
in
compute (builtins.removeAttrs attrs [ "format" ]);
compute (removeAttrs attrs [ "format" ]);
in
makeOverridable (
@ -55,7 +55,7 @@ makeOverridable (
}@attrs:
let
url = computeUrl (
builtins.removeAttrs attrs [
removeAttrs attrs [
"sha256"
"hash"
]

View file

@ -6,7 +6,7 @@
lib.fetchers.withNormalizedHash { } (
{
s3url,
name ? builtins.baseNameOf s3url,
name ? baseNameOf s3url,
outputHash,
outputHashAlgo,
region ? "us-east-1",

View file

@ -45,7 +45,7 @@
}@args:
let
sandboxPathsTests = builtins.map (path: "[[ ! -e '${path}' ]]") sandboxPaths;
sandboxPathsTests = map (path: "[[ ! -e '${path}' ]]") sandboxPaths;
sandboxPathsTest = lib.concatStringsSep " || " sandboxPathsTests;
sandboxPathsList = lib.concatStringsSep " " sandboxPaths;
@ -71,7 +71,7 @@ let
passthru.runScript = runScript;
}
(
builtins.removeAttrs args [
removeAttrs args [
"lib"
"stdenv"
"writeShellScript"

View file

@ -29,7 +29,7 @@ let
# this leaves actual dependencies of the derivations in `inputsFrom`, but never the derivations themselves
(lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom)));
rest = builtins.removeAttrs attrs [
rest = removeAttrs attrs [
"name"
"packages"
"inputsFrom"

View file

@ -24,7 +24,7 @@
filter =
name: type:
let
name' = builtins.baseNameOf name;
name' = baseNameOf name;
in
name' != "default.nix" && name' != "target";
};

View file

@ -52,7 +52,7 @@ let
// fetcherOpts
))
else if lib.hasPrefix "git" module.resolved then
(builtins.fetchGit (
(fetchGit (
{
url = module.resolved;
}

View file

@ -32,7 +32,7 @@ lib.throwIf (args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.m
inherit (topkg) buildPhase installPhase;
}
// (builtins.removeAttrs args [ "minimalOCamlVersion" ])
// (removeAttrs args [ "minimalOCamlVersion" ])
// {
name = "ocaml${ocaml.version}-${pname}-${version}";

View file

@ -81,7 +81,7 @@ stdenv.mkDerivation (
}
# Then, the caller-supplied attributes.
// (builtins.removeAttrs args [ "lib" ])
// (removeAttrs args [ "lib" ])
//
# And finally, our own stuff.

View file

@ -72,7 +72,7 @@ let
optionalAttrs =
if (builtins.intersectAttrs attrs forcedAttrs == { }) then
builtins.removeAttrs attrs [ "replacements" ]
removeAttrs attrs [ "replacements" ]
else
throw "Passing any of ${builtins.concatStringsSep ", " (builtins.attrNames forcedAttrs)} to replaceVarsWith is not supported.";

View file

@ -250,7 +250,7 @@ lib.makeOverridable
"codegenUnits"
"links"
];
extraDerivationAttrs = builtins.removeAttrs crate processedAttrs;
extraDerivationAttrs = removeAttrs crate processedAttrs;
nativeBuildInputs_ = nativeBuildInputs;
buildInputs_ = buildInputs;
extraRustcOpts_ = extraRustcOpts;

View file

@ -91,7 +91,7 @@ let
mkTest =
crateArgs:
let
crate = mkHostCrate (builtins.removeAttrs crateArgs [ "expectedTestOutput" ]);
crate = mkHostCrate (removeAttrs crateArgs [ "expectedTestOutput" ]);
hasTests = crateArgs.buildTests or false;
expectedTestOutputs = crateArgs.expectedTestOutputs or null;
binaries = map (v: lib.escapeShellArg v.name) (crateArgs.crateBin or [ ]);
@ -182,7 +182,7 @@ let
assert (builtins.isList expectedFiles);
let
crate = mkCrate (builtins.removeAttrs crateArgs [ "expectedTestOutput" ]);
crate = mkCrate (removeAttrs crateArgs [ "expectedTestOutput" ]);
crateOutput = if output == null then crate else crate."${output}";
expectedFilesFile = writeTextFile {
name = "expected-files-${name}";
@ -706,7 +706,7 @@ rec {
rustCargoTomlInTopDir =
let
withoutCargoTomlSearch = builtins.removeAttrs rustCargoTomlInSubDir [ "workspace_member" ];
withoutCargoTomlSearch = removeAttrs rustCargoTomlInSubDir [ "workspace_member" ];
in
withoutCargoTomlSearch
// {

View file

@ -73,7 +73,7 @@ rec {
let
members = builtins.attrValues workspaceMembers;
in
builtins.map (m: m.build) members;
map (m: m.build) members;
};
#
@ -4347,7 +4347,7 @@ rec {
sourceFilter =
name: type:
let
baseName = builtins.baseNameOf (builtins.toString name);
baseName = baseNameOf (toString name);
in
!(
# Filter out git
@ -4603,7 +4603,7 @@ rec {
let
features = mergedFeatures."${packageId}" or [ ];
crateConfig' = crateConfigs."${packageId}";
crateConfig = builtins.removeAttrs crateConfig' [
crateConfig = removeAttrs crateConfig' [
"resolvedDefaultFeatures"
"devDependencies"
];
@ -4657,7 +4657,7 @@ rec {
version = package.version;
};
in
lib.mapAttrs (name: choices: builtins.map versionAndRename choices) grouped;
lib.mapAttrs (name: choices: map versionAndRename choices) grouped;
in
buildRustCrateForPkgsFunc pkgs (
crateConfig
@ -4715,7 +4715,7 @@ rec {
if builtins.isAttrs val then
lib.mapAttrs (n: v: sanitizeForJson v) val
else if builtins.isList val then
builtins.map sanitizeForJson val
map sanitizeForJson val
else if builtins.isFunction val then
"function"
else
@ -4826,7 +4826,7 @@ rec {
assert (builtins.isAttrs target);
assert (builtins.isBool runTests);
let
crateConfig = crateConfigs."${packageId}" or (builtins.throw "Package not found: ${packageId}");
crateConfig = crateConfigs."${packageId}" or (throw "Package not found: ${packageId}");
expandedFeatures = expandFeatures (crateConfig.features or { }) features;
enabledFeatures = enableFeatures (crateConfig.dependencies or [ ]) expandedFeatures;
depWithResolvedFeatures =
@ -4984,7 +4984,7 @@ rec {
dependencyPrefix = (dependency.rename or dependency.name) + "/";
dependencyFeatures = builtins.filter (f: lib.hasPrefix dependencyPrefix f) features;
in
builtins.map (lib.removePrefix dependencyPrefix) dependencyFeatures;
map (lib.removePrefix dependencyPrefix) dependencyFeatures;
in
defaultOrNil ++ explicitFeatures ++ additionalDependencyFeatures;
@ -5002,7 +5002,7 @@ rec {
deprecationWarning =
message: value:
if strictDeprecation then
builtins.throw "strictDeprecation enabled, aborting: ${message}"
throw "strictDeprecation enabled, aborting: ${message}"
else
builtins.trace message value;

View file

@ -86,7 +86,7 @@ let
outputHashAlgo = if hash == "" then "sha256" else null;
outputHashMode = "recursive";
}
// builtins.removeAttrs args removedArgs
// removeAttrs args removedArgs
);
in

View file

@ -16,7 +16,7 @@
# Cargo lock file contents as string
lockFileContents ? null,
# Allow `builtins.fetchGit` to be used to not require hashes for git dependencies
# Allow `fetchGit` to be used to not require hashes for git dependencies
allowBuiltinFetchGit ? false,
# Additional registries to pull sources from
@ -57,7 +57,7 @@ let
# shadows args.lockFileContents
lockFileContents = if lockFile != null then builtins.readFile lockFile else args.lockFileContents;
parsedLockFile = builtins.fromTOML lockFileContents;
parsedLockFile = fromTOML lockFileContents;
# lockfile v1 and v2 don't have the `version` key, so assume v2
# we can implement more fine-grained detection later, if needed
@ -75,11 +75,11 @@ let
# Force evaluation of the git SHA -> hash mapping, so that an error is
# thrown if there are stale hashes. We cannot rely on gitShaOutputHash
# being evaluated otherwise, since there could be no git dependencies.
depCrates = builtins.deepSeq gitShaOutputHash (builtins.map mkCrate depPackages);
depCrates = builtins.deepSeq gitShaOutputHash (map mkCrate depPackages);
# Map package name + version to git commit SHA for packages with a git source.
namesGitShas = builtins.listToAttrs (
builtins.map nameGitSha (builtins.filter (pkg: lib.hasPrefix "git+" pkg.source) depPackages)
map nameGitSha (builtins.filter (pkg: lib.hasPrefix "git+" pkg.source) depPackages)
);
nameGitSha =
@ -188,7 +188,7 @@ let
sha256 = gitShaOutputHash.${gitParts.sha};
}
else if allowBuiltinFetchGit then
builtins.fetchGit {
fetchGit {
inherit (gitParts) url;
rev = gitParts.sha;
allRefs = true;

View file

@ -33,7 +33,7 @@ let
foo
''
else
builtins.throw "Invalid scope: ${scope}";
throw "Invalid scope: ${scope}";
in
{
name,

View file

@ -33,7 +33,7 @@ let
foo
''
else
builtins.throw "Invalid scope: ${scope}";
throw "Invalid scope: ${scope}";
in
{
name,

View file

@ -60,9 +60,9 @@ in
# If we are passed a derivation (based on stdenv*), we can use overrideAttrs to
# update the arguments to mkDerivation. This gives us the proper awareness of
# what arguments were effectively passed *to* mkDerivation as opposed to
# builtins.derivation (by mkDerivation). For example, stdenv.mkDerivation
# derivation (by mkDerivation). For example, stdenv.mkDerivation
# accepts an `env` attribute set which is postprocessed before being passed to
# builtins.derivation. This can lead to evaluation failures, if we assume
# derivation. This can lead to evaluation failures, if we assume
# that drvAttrs is equivalent to the arguments passed to mkDerivation.
# See https://github.com/NixOS/nixpkgs/issues/269539.
if lib.isDerivation attrs && attrs ? overrideAttrs then

View file

@ -225,7 +225,7 @@
"testers.hasPkgConfigModule has been deprecated in favor of testers.hasPkgConfigModules. It accepts a list of strings via the moduleNames argument instead of a single moduleName."
(
testers.hasPkgConfigModules (
builtins.removeAttrs args [ "moduleName" ]
removeAttrs args [ "moduleName" ]
// {
moduleNames = [ moduleName ];
}

View file

@ -94,7 +94,7 @@ rec {
preferLocalBuild = true;
allowSubstitutes = false;
})
// builtins.removeAttrs derivationArgs [ "passAsFile" ]
// removeAttrs derivationArgs [ "passAsFile" ]
);
# Docs in doc/build-helpers/trivial-build-helpers.chapter.md
@ -182,7 +182,7 @@ rec {
path: text:
writeTextFile {
inherit text;
name = builtins.baseNameOf path;
name = baseNameOf path;
destination = "/${path}";
};
@ -983,7 +983,7 @@ rec {
# TODO: move copyPathsToStore docs to the Nixpkgs manual
# Copy a list of paths to the Nix store.
copyPathsToStore = builtins.map copyPathToStore;
copyPathsToStore = map copyPathToStore;
# TODO: move applyPatches docs to the Nixpkgs manual
/*
@ -1009,7 +1009,7 @@ rec {
name ?
(
if builtins.typeOf src == "path" then
builtins.baseNameOf src
baseNameOf src
else if builtins.isAttrs src && builtins.hasAttr "name" src then
src.name
else

View file

@ -104,7 +104,7 @@ let
runTest =
script:
let
name = script.name or (builtins.baseNameOf script);
name = script.name or (baseNameOf script);
in
writeShellScript "run-${name}" ''
if [ "$(${script})" != "success" ]; then

View file

@ -8,7 +8,7 @@
let
stri = writeText "pathToTest";
txt1 = stri "abc";
txt2 = stri (builtins.toString hello);
txt2 = stri (toString hello);
res = concatText "textToTest" [
txt1
txt2

View file

@ -13,7 +13,7 @@ let
checkShellApplication =
args@{ name, expected, ... }:
let
writeShellApplicationArgs = builtins.removeAttrs args [ "expected" ];
writeShellApplicationArgs = removeAttrs args [ "expected" ];
script = writeShellApplication writeShellApplicationArgs;
executable = lib.getExe script;
expected' = writeTextFile {

View file

@ -599,7 +599,7 @@ rec {
...
}@args:
makeScriptWriter (
(builtins.removeAttrs args [
(removeAttrs args [
"babashka"
])
// {
@ -692,7 +692,7 @@ rec {
in
makeScriptWriter
(
(builtins.removeAttrs config [
(removeAttrs config [
"guile"
"libraries"
"r6rs"
@ -728,7 +728,7 @@ rec {
[ "--no-auto-compile" ]
++ lib.optional r6rs "--r6rs"
++ lib.optional r7rs "--r7rs"
++ lib.optional (srfi != [ ]) ("--use-srfi=" + concatMapStringsSep "," builtins.toString srfi)
++ lib.optional (srfi != [ ]) ("--use-srfi=" + concatMapStringsSep "," toString srfi)
++ [ "-s" ]
))
"!#"
@ -921,7 +921,7 @@ rec {
...
}@args:
makeScriptWriter (
(builtins.removeAttrs args [ "libraries" ])
(removeAttrs args [ "libraries" ])
// {
interpreter =
if libraries == [ ] then "${ruby}/bin/ruby" else "${(ruby.withPackages (ps: libraries))}/bin/ruby";
@ -963,7 +963,7 @@ rec {
...
}@args:
makeScriptWriter (
(builtins.removeAttrs args [ "libraries" ])
(removeAttrs args [ "libraries" ])
// {
interpreter = lua.interpreter;
# if libraries == []
@ -1134,7 +1134,7 @@ rec {
...
}@args:
makeScriptWriter (
(builtins.removeAttrs args [ "libraries" ])
(removeAttrs args [ "libraries" ])
// {
interpreter = "${lib.getExe (pkgs.perl.withPackages (p: libraries))}";
}
@ -1186,7 +1186,7 @@ rec {
"--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}";
in
makeScriptWriter (
(builtins.removeAttrs args [
(removeAttrs args [
"libraries"
"flakeIgnore"
"doCheck"
@ -1333,7 +1333,7 @@ rec {
content:
makeScriptWriter
(
(builtins.removeAttrs args [
(removeAttrs args [
"dotnet-sdk"
"fsi-flags"
"libraries"

View file

@ -79,7 +79,7 @@ stdenv.mkDerivation {
doInstallCheck = true;
versionCheckProgram = "${builtins.placeholder "out"}/bin/op";
versionCheckProgram = "${placeholder "out"}/bin/op";
versionCheckProgramArg = "--version";
passthru = {

View file

@ -35,7 +35,7 @@ rustPlatform.buildRustPackage {
preBuild = ''
justFlagsArray+=(
PREFIX=${builtins.placeholder "out"}
PREFIX=${placeholder "out"}
MANIFEST_OPTS="--frozen --locked --profile=release"
INSTALL_OPTS="--no-track"
)

View file

@ -24,9 +24,9 @@ runCommand "${alsa-lib.pname}-${alsa-lib.version}"
}
(
(lib.concatMapStringsSep "\n" (output: ''
mkdir ${builtins.placeholder output}
mkdir ${placeholder output}
${lndir}/bin/lndir ${lib.attrByPath [ output ] null alsa-lib} \
${builtins.placeholder output}
${placeholder output}
'') alsa-lib.outputs)
+ ''
cp -r ${merged}/lib/alsa-lib $out/lib

View file

@ -43,7 +43,7 @@ buildGoModule rec {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${builtins.placeholder "out"}/bin/amazon-cloudwatch-agent";
versionCheckProgram = "${placeholder "out"}/bin/amazon-cloudwatch-agent";
versionCheckProgramArg = "-version";

View file

@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "v${finalAttrs.version}";
};
};
versionTestList = builtins.map mkVersionTest tools;
versionTestList = map mkVersionTest tools;
versionTests = lib.mergeAttrsList versionTestList;
in

View file

@ -52,7 +52,7 @@ in
symlinkJoin {
inherit pname version;
paths = (builtins.map makeIosevkaFont sets);
paths = (map makeIosevkaFont sets);
meta = {
inherit (src.meta) homepage;

View file

@ -158,7 +158,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
homepage = "https://github.com/AyatanaIndicators/ayatana-indicator-messages";
changelog = "https://github.com/AyatanaIndicators/ayatana-indicator-messages/blob/${
if (!builtins.isNull finalAttrs.src.tag) then finalAttrs.src.tag else finalAttrs.src.rev
if (!isNull finalAttrs.src.tag) then finalAttrs.src.tag else finalAttrs.src.rev
}/ChangeLog";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
hareThirdParty.hare-json
];
makeFlags = [ "PREFIX=${builtins.placeholder "out"}" ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
enableParallelBuilding = true;

View file

@ -95,9 +95,9 @@ lib.checkListOfEnum "${pname}: theme accent" validAccents accents lib.checkListO
mkdir -p $out/share/themes
python3 build.py ${variant} \
--accent ${builtins.toString accents} \
--accent ${toString accents} \
${lib.optionalString (size != [ ]) "--size " + size} \
${lib.optionalString (tweaks != [ ]) "--tweaks " + builtins.toString tweaks} \
${lib.optionalString (tweaks != [ ]) "--tweaks " + toString tweaks} \
--dest $out/share/themes
runHook postInstall

View file

@ -87,10 +87,10 @@ lib.checkListOfEnum "colloid-gtk-theme: theme variants"
runHook preInstall
name= HOME="$TMPDIR" ./install.sh \
${lib.optionalString (themeVariants != [ ]) "--theme " + builtins.toString themeVariants} \
${lib.optionalString (colorVariants != [ ]) "--color " + builtins.toString colorVariants} \
${lib.optionalString (sizeVariants != [ ]) "--size " + builtins.toString sizeVariants} \
${lib.optionalString (tweaks != [ ]) "--tweaks " + builtins.toString tweaks} \
${lib.optionalString (themeVariants != [ ]) "--theme " + toString themeVariants} \
${lib.optionalString (colorVariants != [ ]) "--color " + toString colorVariants} \
${lib.optionalString (sizeVariants != [ ]) "--size " + toString sizeVariants} \
${lib.optionalString (tweaks != [ ]) "--tweaks " + toString tweaks} \
--dest $out/share/themes
jdupes --quiet --link-soft --recurse $out/share

View file

@ -77,8 +77,8 @@ lib.checkListOfEnum "colloid-icon-theme: scheme variants"
runHook preInstall
name= ./install.sh \
${lib.optionalString (schemeVariants != [ ]) ("--scheme " + builtins.toString schemeVariants)} \
${lib.optionalString (colorVariants != [ ]) ("--theme " + builtins.toString colorVariants)} \
${lib.optionalString (schemeVariants != [ ]) ("--scheme " + toString schemeVariants)} \
${lib.optionalString (colorVariants != [ ]) ("--theme " + toString colorVariants)} \
--dest $out/share/icons
jdupes --quiet --link-soft --recurse $out/share

View file

@ -10,7 +10,7 @@
}:
let
attrsToSources = attrs: builtins.map ({ repo, version, ... }: "${repo}@${version}") attrs;
attrsToSources = attrs: map ({ repo, version, ... }: "${repo}@${version}") attrs;
in
buildGoModule (finalAttrs: {
pname = "coredns";
@ -75,7 +75,7 @@ buildGoModule (finalAttrs: {
) externalPlugins)
}
diff -u plugin.cfg.orig plugin.cfg || true
for src in ${builtins.toString (attrsToSources externalPlugins)}; do go get $src; done
for src in ${toString (attrsToSources externalPlugins)}; do go get $src; done
GOOS= GOARCH= go generate
go mod vendor
'';

View file

@ -47,8 +47,8 @@ stdenv.mkDerivation (finalAttrs: {
# files that are also in that repo.
cmakeBuildDir = "cmake-build";
includeInstallDir = "${builtins.placeholder "out"}/include/cppitertools";
cmakeInstallDir = "${builtins.placeholder "out"}/share/cmake";
includeInstallDir = "${placeholder "out"}/include/cppitertools";
cmakeInstallDir = "${placeholder "out"}/share/cmake";
# This version of cppitertools considers itself as having used the default value,
# and issues warning, unless -Dcppitertools_INSTALL_CMAKE_DIR is present as an

View file

@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
description = "Brother HL-L2350DW printer driver";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = builtins.map (arch: "${arch}-linux") arches;
platforms = map (arch: "${arch}-linux") arches;
downloadPage = "https://support.brother.com/g/b/downloadlist.aspx?c=us_ot&lang=en&prod=hll2350dw_us_eu_as&os=128";
maintainers = [ maintainers.sternenseemann ];
};

View file

@ -105,7 +105,7 @@ stdenv.mkDerivation rec {
homepage = "http://www.brother.com/";
description = "Brother HLL2375DW printer driver";
license = licenses.unfree;
platforms = builtins.map (arch: "${arch}-linux") arches;
platforms = map (arch: "${arch}-linux") arches;
maintainers = [ maintainers.gador ];
};
}

View file

@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
description = "Brother MFC-L2750DW printer driver";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = builtins.map (arch: "${arch}-linux") arches;
platforms = map (arch: "${arch}-linux") arches;
maintainers = [ maintainers.lovesegfault ];
};
}

View file

@ -96,7 +96,7 @@ stdenv.mkDerivation {
description = "Brother MFC-L2750DW printer driver";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
platforms = builtins.map (arch: "${arch}-linux") arches;
platforms = map (arch: "${arch}-linux") arches;
maintainers = [ lib.maintainers.luftmensch-luftmensch ];
};
}

View file

@ -23,7 +23,7 @@ vendorhash() {
findpath() {
path="$(nix --extra-experimental-features nix-command eval --json --impure -f "$nixpkgs" "$1.meta.position" | jq -r . | cut -d: -f1)"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "builtins.fetchGit \"$nixpkgs\"")"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "fetchGit \"$nixpkgs\"")"
if [ -n "$outpath" ]; then
path="${path/$(echo "$outpath" | jq -r .)/$nixpkgs}"

View file

@ -23,7 +23,7 @@ vendorhash() {
findpath() {
path="$(nix --extra-experimental-features nix-command eval --json --impure -f "$nixpkgs" "$1.meta.position" | jq -r . | cut -d: -f1)"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "builtins.fetchGit \"$nixpkgs\"")"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "fetchGit \"$nixpkgs\"")"
if [ -n "$outpath" ]; then
path="${path/$(echo "$outpath" | jq -r .)/$nixpkgs}"

View file

@ -180,7 +180,7 @@ stdenv.mkDerivation (finalAttrs: {
checkInputs = [ cunit ];
doCheck = true;
versionCheckProgram = "${builtins.placeholder "out"}/libexec/master";
versionCheckProgram = "${placeholder "out"}/libexec/master";
versionCheckProgramArg = "-V";
nativeInstallCheckInputs = [
versionCheckHook

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: {
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${builtins.placeholder "out"}/bin/dmr_decoder";
versionCheckProgram = "${placeholder "out"}/bin/dmr_decoder";
doInstallCheck = true;
meta = {

View file

@ -40,7 +40,7 @@ let
);
};
bits = builtins.toString stdenv.hostPlatform.parsed.cpu.bits;
bits = toString stdenv.hostPlatform.parsed.cpu.bits;
osname = if stdenv.hostPlatform.isDarwin then "osx" else stdenv.hostPlatform.parsed.kernel.name;
pathToDmd = "\${NIX_BUILD_TOP}/dmd/generated/${osname}/release/${bits}/dmd";

View file

@ -47,8 +47,8 @@ buildGoModule rec {
];
in
''
for cmd in ${builtins.toString cmds}; do
go build -ldflags "${builtins.toString ldflags}" -trimpath -o bin/docker-credential-$cmd ./$cmd/cmd
for cmd in ${toString cmds}; do
go build -ldflags "${toString ldflags}" -trimpath -o bin/docker-credential-$cmd ./$cmd/cmd
done
'';

Some files were not shown because too many files have changed in this diff Show more