Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv }: 2 3stdenv.mkDerivation { 4 name = "add-driver-runpath"; 5 6 # Named "opengl-driver" for legacy reasons, but it is the path to 7 # hardware drivers installed by NixOS 8 driverLink = "/run/opengl-driver" + lib.optionalString stdenv.hostPlatform.isi686 "-32"; 9 10 buildCommand = '' 11 mkdir -p $out/nix-support 12 substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook 13 ''; 14}