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
-
{ lib, stdenv, fetchFromGitHub }:
0
0
0
2
3
stdenv.mkDerivation rec {
4
-
name = "${pname}-${date}";
5
pname = "pwnat";
6
-
date = "2014-09-08";
0
0
0
7
8
src = fetchFromGitHub {
9
owner = "samyk";
10
repo = pname;
11
-
rev = "1d07c2eb53171733831c0cd01e4e96a3204ec446";
12
-
sha256 = "056xhlnf1axa6k90i018xwijkwc9zc7fms35hrkzwgs40g9ybrx5";
13
};
14
0
0
0
0
0
15
installPhase = ''
16
-
mkdir -p $out/bin $out/share/pwnat
17
-
cp pwnat $out/bin
18
-
cp README* COPYING* $out/share/pwnat
0
0
19
'';
20
21
meta = with lib; {
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
}:
5
6
stdenv.mkDerivation rec {
0
7
pname = "pwnat";
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";
12
13
src = fetchFromGitHub {
14
owner = "samyk";
15
repo = pname;
16
+
rev = "8ec62cdae53a2d573c9f9c906133ca45bbd3360a";
17
+
sha256 = "sha256-QodNw3ab8/TurKamg6AgMfQ08aalp4j6q663B+sWmRM=";
18
};
19
20
+
# See https://github.com/samyk/pwnat/issues/28
21
+
preBuild = ''
22
+
mkdir obj
23
+
'';
24
+
25
installPhase = ''
26
+
runHook preInstall
27
+
28
+
install -D pwnat $out/bin/pwnat
29
+
30
+
runHook postInstall
31
'';
32
33
meta = with lib; {