tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pwnat: 2014-09-08 -> 2023-03-31
Doron Behar
2 years ago
6d4cafca
60ac106c
+20
-8
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
pwnat
default.nix
+20
-8
pkgs/tools/networking/pwnat/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
}:
2
5
3
6
stdenv.mkDerivation rec {
4
4
-
name = "${pname}-${date}";
5
7
pname = "pwnat";
6
6
-
date = "2014-09-08";
8
8
+
# Latest release has an annoying segmentation fault bug, see:
9
9
+
# https://github.com/samyk/pwnat/pull/25 . Merging only #25 is impossible due
10
10
+
# to major code refactoring.
11
11
+
version = "2023-03-31";
7
12
8
13
src = fetchFromGitHub {
9
14
owner = "samyk";
10
15
repo = pname;
11
11
-
rev = "1d07c2eb53171733831c0cd01e4e96a3204ec446";
12
12
-
sha256 = "056xhlnf1axa6k90i018xwijkwc9zc7fms35hrkzwgs40g9ybrx5";
16
16
+
rev = "8ec62cdae53a2d573c9f9c906133ca45bbd3360a";
17
17
+
sha256 = "sha256-QodNw3ab8/TurKamg6AgMfQ08aalp4j6q663B+sWmRM=";
13
18
};
14
19
20
20
+
# See https://github.com/samyk/pwnat/issues/28
21
21
+
preBuild = ''
22
22
+
mkdir obj
23
23
+
'';
24
24
+
15
25
installPhase = ''
16
16
-
mkdir -p $out/bin $out/share/pwnat
17
17
-
cp pwnat $out/bin
18
18
-
cp README* COPYING* $out/share/pwnat
26
26
+
runHook preInstall
27
27
+
28
28
+
install -D pwnat $out/bin/pwnat
29
29
+
30
30
+
runHook postInstall
19
31
'';
20
32
21
33
meta = with lib; {