mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
pwnat: 2014-09-08 -> 2023-03-31
This commit is contained in:
parent
60ac106c34
commit
6d4cafca68
|
@ -1,21 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${date}";
|
||||
pname = "pwnat";
|
||||
date = "2014-09-08";
|
||||
# Latest release has an annoying segmentation fault bug, see:
|
||||
# https://github.com/samyk/pwnat/pull/25 . Merging only #25 is impossible due
|
||||
# to major code refactoring.
|
||||
version = "2023-03-31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "samyk";
|
||||
repo = pname;
|
||||
rev = "1d07c2eb53171733831c0cd01e4e96a3204ec446";
|
||||
sha256 = "056xhlnf1axa6k90i018xwijkwc9zc7fms35hrkzwgs40g9ybrx5";
|
||||
rev = "8ec62cdae53a2d573c9f9c906133ca45bbd3360a";
|
||||
sha256 = "sha256-QodNw3ab8/TurKamg6AgMfQ08aalp4j6q663B+sWmRM=";
|
||||
};
|
||||
|
||||
# See https://github.com/samyk/pwnat/issues/28
|
||||
preBuild = ''
|
||||
mkdir obj
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/pwnat
|
||||
cp pwnat $out/bin
|
||||
cp README* COPYING* $out/share/pwnat
|
||||
runHook preInstall
|
||||
|
||||
install -D pwnat $out/bin/pwnat
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue