···293293 script = ''
294294 # Remove Dead Interfaces
295295 echo "Removing old bridge ${n}..."
296296- ip link show "${n}" >/dev/null 2>&1 && ip link del "${n}"
296296+ ip link show dev "${n}" >/dev/null 2>&1 && ip link del "${n}"
297297298298 echo "Adding bridge ${n}..."
299299 ip link add name "${n}" type bridge
···459459 path = [ pkgs.iproute2 ];
460460 script = ''
461461 # Remove Dead Interfaces
462462- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
462462+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
463463 ip link add link "${v.interface}" name "${n}" type macvlan \
464464 ${optionalString (v.mode != null) "mode ${v.mode}"}
465465 ip link set "${n}" up
···517517 path = [ pkgs.iproute2 ];
518518 script = ''
519519 # Remove Dead Interfaces
520520- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
520520+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
521521 ip link add name "${n}" type sit \
522522 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
523523 ${optionalString (v.local != null) "local \"${v.local}\""} \
···551551 path = [ pkgs.iproute2 ];
552552 script = ''
553553 # Remove Dead Interfaces
554554- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
554554+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
555555 ip link add name "${n}" type ${v.type} \
556556 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
557557 ${optionalString (v.local != null) "local \"${v.local}\""} \
···579579 path = [ pkgs.iproute2 ];
580580 script = ''
581581 # Remove Dead Interfaces
582582- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
582582+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
583583 ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
584584585585 # We try to bring up the logical VLAN interface. If the master
···1717nixopsvbox = {git = "https://github.com/nix-community/nixops-vbox.git"}
1818nixops-virtd = {git = "https://github.com/nix-community/nixops-libvirtd.git"}
19192020+# poetry lock would download an excessive number of wheels looking for a compatible version, so
2121+# we pin a feasible range here. This does not represent a real constraint on the version and
2222+# would be ok to remove/update/ignore in future upgrades. Note that a botocore wheel is about 50MB.
2323+boto3 = "^1.26"
2424+botocore = "^1.29"
2525+2026[build-system]
2127requires = ["poetry>=0.12"]
2228build-backend = "poetry.masonry.api"
+8-5
pkgs/build-support/trivial-builders/default.nix
···135135 , allowSubstitutes ? false
136136 , preferLocalBuild ? true
137137 }:
138138+ let
139139+ matches = builtins.match "/bin/([^/]+)" destination;
140140+ in
138141 runCommand name
139139- { inherit text executable checkPhase meta allowSubstitutes preferLocalBuild;
142142+ { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
140143 passAsFile = [ "text" ];
144144+ meta = lib.optionalAttrs (executable && matches != null) {
145145+ mainProgram = lib.head matches;
146146+ } // meta;
141147 }
142148 ''
143149 target=$out${lib.escapeShellArg destination}
···230236231237232238 */
233233- writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}"; meta.mainProgram = name;};
239239+ writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
234240235241 /*
236242 Similar to writeScript. Writes a Shell script and checks its syntax.
···288294 checkPhase = ''
289295 ${stdenv.shellDryRun} "$target"
290296 '';
291291- meta.mainProgram = name;
292297 };
293298294299 /*
···351356 runHook postCheck
352357 ''
353358 else checkPhase;
354354-355355- meta.mainProgram = name;
356359 };
357360358361 # Create a C binary
···3333 "$out/share/vulkan/implicit_layer.d/vkBasalt32.json"
3434 '';
35353636+ # We need to give the different layers separate names or else the loader
3737+ # might try the 32-bit one first, fail and not attempt to load the 64-bit
3838+ # layer under the same name.
3939+ postFixup = ''
4040+ substituteInPlace "$out/share/vulkan/implicit_layer.d/vkBasalt.json" \
4141+ --replace "VK_LAYER_VKBASALT_post_processing" "VK_LAYER_VKBASALT_post_processing_${toString stdenv.hostPlatform.parsed.cpu.bits}"
4242+ '';
4343+3644 meta = with lib; {
3745 description = "A Vulkan post processing layer for Linux";
3846 homepage = "https://github.com/DadSchoorse/vkBasalt";