···293 script = ''
294 # Remove Dead Interfaces
295 echo "Removing old bridge ${n}..."
296- ip link show "${n}" >/dev/null 2>&1 && ip link del "${n}"
297298 echo "Adding bridge ${n}..."
299 ip link add name "${n}" type bridge
···459 path = [ pkgs.iproute2 ];
460 script = ''
461 # Remove Dead Interfaces
462- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
463 ip link add link "${v.interface}" name "${n}" type macvlan \
464 ${optionalString (v.mode != null) "mode ${v.mode}"}
465 ip link set "${n}" up
···517 path = [ pkgs.iproute2 ];
518 script = ''
519 # Remove Dead Interfaces
520- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
521 ip link add name "${n}" type sit \
522 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
523 ${optionalString (v.local != null) "local \"${v.local}\""} \
···551 path = [ pkgs.iproute2 ];
552 script = ''
553 # Remove Dead Interfaces
554- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
555 ip link add name "${n}" type ${v.type} \
556 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
557 ${optionalString (v.local != null) "local \"${v.local}\""} \
···579 path = [ pkgs.iproute2 ];
580 script = ''
581 # Remove Dead Interfaces
582- ip link show "${n}" >/dev/null 2>&1 && ip link delete "${n}"
583 ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
584585 # We try to bring up the logical VLAN interface. If the master
···293 script = ''
294 # Remove Dead Interfaces
295 echo "Removing old bridge ${n}..."
296+ ip link show dev "${n}" >/dev/null 2>&1 && ip link del "${n}"
297298 echo "Adding bridge ${n}..."
299 ip link add name "${n}" type bridge
···459 path = [ pkgs.iproute2 ];
460 script = ''
461 # Remove Dead Interfaces
462+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
463 ip link add link "${v.interface}" name "${n}" type macvlan \
464 ${optionalString (v.mode != null) "mode ${v.mode}"}
465 ip link set "${n}" up
···517 path = [ pkgs.iproute2 ];
518 script = ''
519 # Remove Dead Interfaces
520+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
521 ip link add name "${n}" type sit \
522 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
523 ${optionalString (v.local != null) "local \"${v.local}\""} \
···551 path = [ pkgs.iproute2 ];
552 script = ''
553 # Remove Dead Interfaces
554+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
555 ip link add name "${n}" type ${v.type} \
556 ${optionalString (v.remote != null) "remote \"${v.remote}\""} \
557 ${optionalString (v.local != null) "local \"${v.local}\""} \
···579 path = [ pkgs.iproute2 ];
580 script = ''
581 # Remove Dead Interfaces
582+ ip link show dev "${n}" >/dev/null 2>&1 && ip link delete "${n}"
583 ip link add link "${v.interface}" name "${n}" type vlan id "${toString v.id}"
584585 # We try to bring up the logical VLAN interface. If the master
···17nixopsvbox = {git = "https://github.com/nix-community/nixops-vbox.git"}
18nixops-virtd = {git = "https://github.com/nix-community/nixops-libvirtd.git"}
1920+# poetry lock would download an excessive number of wheels looking for a compatible version, so
21+# we pin a feasible range here. This does not represent a real constraint on the version and
22+# would be ok to remove/update/ignore in future upgrades. Note that a botocore wheel is about 50MB.
23+boto3 = "^1.26"
24+botocore = "^1.29"
25+26[build-system]
27requires = ["poetry>=0.12"]
28build-backend = "poetry.masonry.api"
+8-5
pkgs/build-support/trivial-builders/default.nix
···135 , allowSubstitutes ? false
136 , preferLocalBuild ? true
137 }:
000138 runCommand name
139- { inherit text executable checkPhase meta allowSubstitutes preferLocalBuild;
140 passAsFile = [ "text" ];
000141 }
142 ''
143 target=$out${lib.escapeShellArg destination}
···230231232 */
233- writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}"; meta.mainProgram = name;};
234235 /*
236 Similar to writeScript. Writes a Shell script and checks its syntax.
···288 checkPhase = ''
289 ${stdenv.shellDryRun} "$target"
290 '';
291- meta.mainProgram = name;
292 };
293294 /*
···351 runHook postCheck
352 ''
353 else checkPhase;
354-355- meta.mainProgram = name;
356 };
357358 # Create a C binary
···135 , allowSubstitutes ? false
136 , preferLocalBuild ? true
137 }:
138+ let
139+ matches = builtins.match "/bin/([^/]+)" destination;
140+ in
141 runCommand name
142+ { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
143 passAsFile = [ "text" ];
144+ meta = lib.optionalAttrs (executable && matches != null) {
145+ mainProgram = lib.head matches;
146+ } // meta;
147 }
148 ''
149 target=$out${lib.escapeShellArg destination}
···236237238 */
239+ writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
240241 /*
242 Similar to writeScript. Writes a Shell script and checks its syntax.
···294 checkPhase = ''
295 ${stdenv.shellDryRun} "$target"
296 '';
0297 };
298299 /*
···356 runHook postCheck
357 ''
358 else checkPhase;
00359 };
360361 # Create a C binary
···22 sha256 = "sha256-tg4v9/Nnue7itWNNOmMwPd/t4OahjfyojESodw5+QjQ=";
23 };
2425- outputs = [ "out" "dev" ];
00002627 postPatch = ''
28 # Fix headers to use libsodium instead of NaCl
···22 sha256 = "sha256-tg4v9/Nnue7itWNNOmMwPd/t4OahjfyojESodw5+QjQ=";
23 };
2425+ # Do not split 'dev' output until lib/cmake/libssh/libssh-config.cmake
26+ # is fixed to point INTERFACE_INCLUDE_DIRECTORIES to .dev output.
27+ # Otherwise it breaks `plasma5Packages.kio-extras`:
28+ # https://hydra.nixos.org/build/221540008/nixlog/3/tail
29+ #outputs = [ "out" "dev" ];
3031 postPatch = ''
32 # Fix headers to use libsodium instead of NaCl
+2
pkgs/development/libraries/vtk/generic.nix
···68 "-DCMAKE_CXX_FLAGS=-fPIC"
69 "-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_PNG" else "VTK_MODULE_USE_EXTERNAL_vtkpng"}=ON"
70 "-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_TIFF" else "VTK_MODULE_USE_EXTERNAL_vtktiff"}=1"
071 "-DOPENGL_INCLUDE_DIR=${libGL}/include"
072 "-DCMAKE_INSTALL_LIBDIR=lib"
73 "-DCMAKE_INSTALL_INCLUDEDIR=include"
74 "-DCMAKE_INSTALL_BINDIR=bin"
···68 "-DCMAKE_CXX_FLAGS=-fPIC"
69 "-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_PNG" else "VTK_MODULE_USE_EXTERNAL_vtkpng"}=ON"
70 "-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_TIFF" else "VTK_MODULE_USE_EXTERNAL_vtktiff"}=1"
71+ ] ++ lib.optionals (!stdenv.isDarwin) [
72 "-DOPENGL_INCLUDE_DIR=${libGL}/include"
73+ ] ++ [
74 "-DCMAKE_INSTALL_LIBDIR=lib"
75 "-DCMAKE_INSTALL_INCLUDEDIR=include"
76 "-DCMAKE_INSTALL_BINDIR=bin"
···33 "$out/share/vulkan/implicit_layer.d/vkBasalt32.json"
34 '';
350000000036 meta = with lib; {
37 description = "A Vulkan post processing layer for Linux";
38 homepage = "https://github.com/DadSchoorse/vkBasalt";
···33 "$out/share/vulkan/implicit_layer.d/vkBasalt32.json"
34 '';
3536+ # We need to give the different layers separate names or else the loader
37+ # might try the 32-bit one first, fail and not attempt to load the 64-bit
38+ # layer under the same name.
39+ postFixup = ''
40+ substituteInPlace "$out/share/vulkan/implicit_layer.d/vkBasalt.json" \
41+ --replace "VK_LAYER_VKBASALT_post_processing" "VK_LAYER_VKBASALT_post_processing_${toString stdenv.hostPlatform.parsed.cpu.bits}"
42+ '';
43+44 meta = with lib; {
45 description = "A Vulkan post processing layer for Linux";
46 homepage = "https://github.com/DadSchoorse/vkBasalt";