noseyparker: fix cross, modernize (#422064)

authored by 0x4A6F and committed by GitHub 5d9b9145 d1acfa90

+9 -2
+9 -2
pkgs/by-name/no/noseyparker/package.nix
··· 19 19 src = fetchFromGitHub { 20 20 owner = "praetorian-inc"; 21 21 repo = "noseyparker"; 22 - rev = "v${version}"; 22 + tag = "v${version}"; 23 23 hash = "sha256-6GxkIxLEgbIgg4nSHvmRedm8PAPBwVxLQUnQzh3NonA="; 24 24 }; 25 25 26 26 cargoHash = "sha256-hVBHIm/12WU6g45QMxxuGk41B0kwThk7A84fOxArvno="; 27 + 28 + # Fix error: failed to run custom build command for `vectorscan-rs-sys v0.0.5` 29 + # Failed to get C++ compiler version: Os { code: 2, kind: NotFound, message: "No such file or directory" } 30 + postPatch = '' 31 + substituteInPlace $(find ../noseyparker-${version}-vendor -name "vectorscan-rs-sys*")/build.rs \ 32 + --replace-fail 'Command::new("c++")' 'Command::new("${stdenv.cc.targetPrefix}c++")' 33 + ''; 27 34 28 35 checkFlags = [ 29 36 # These tests expect access to network to clone and use GitHub API ··· 56 63 openssl 57 64 ]; 58 65 59 - OPENSSL_NO_VENDOR = 1; 66 + env.OPENSSL_NO_VENDOR = 1; 60 67 61 68 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 62 69 mkdir -p manpages