Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pwnat: 2014-09-08 -> 2023-03-31

+20 -8
+20 -8
pkgs/tools/networking/pwnat/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + }: 2 5 3 6 stdenv.mkDerivation rec { 4 - name = "${pname}-${date}"; 5 7 pname = "pwnat"; 6 - date = "2014-09-08"; 8 + # Latest release has an annoying segmentation fault bug, see: 9 + # https://github.com/samyk/pwnat/pull/25 . Merging only #25 is impossible due 10 + # to major code refactoring. 11 + version = "2023-03-31"; 7 12 8 13 src = fetchFromGitHub { 9 14 owner = "samyk"; 10 15 repo = pname; 11 - rev = "1d07c2eb53171733831c0cd01e4e96a3204ec446"; 12 - sha256 = "056xhlnf1axa6k90i018xwijkwc9zc7fms35hrkzwgs40g9ybrx5"; 16 + rev = "8ec62cdae53a2d573c9f9c906133ca45bbd3360a"; 17 + sha256 = "sha256-QodNw3ab8/TurKamg6AgMfQ08aalp4j6q663B+sWmRM="; 13 18 }; 14 19 20 + # See https://github.com/samyk/pwnat/issues/28 21 + preBuild = '' 22 + mkdir obj 23 + ''; 24 + 15 25 installPhase = '' 16 - mkdir -p $out/bin $out/share/pwnat 17 - cp pwnat $out/bin 18 - cp README* COPYING* $out/share/pwnat 26 + runHook preInstall 27 + 28 + install -D pwnat $out/bin/pwnat 29 + 30 + runHook postInstall 19 31 ''; 20 32 21 33 meta = with lib; {