uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/tools/networking/netcat-openbsd/default.nix
Normal file
54
pkgs/tools/networking/netcat-openbsd/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchFromGitLab, pkg-config, libbsd, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "netcat-openbsd";
|
||||
version = "1.218-5";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "salsa.debian.org";
|
||||
owner = "debian";
|
||||
repo = "netcat-openbsd";
|
||||
rev = "refs/tags/debian/${version}";
|
||||
sha256 = "sha256-jEJ8x49Z1UN2qOChGp173aQuPkgl2fWwUUJgUdOv60I=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||
buildInputs = [ libbsd ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${lib.getDev libbsd}/include/libbsd"
|
||||
];
|
||||
|
||||
NIX_LDFLAGS = [ "-lbsd" ];
|
||||
|
||||
postPatch = ''
|
||||
for file in $(cat debian/patches/series); do
|
||||
patch -p1 < debian/patches/$file
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
mv nc $out/bin/nc
|
||||
installManPage nc.1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/nc -h 2> /dev/null
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "TCP/IP swiss army knife. OpenBSD variant";
|
||||
homepage = "https://salsa.debian.org/debian/netcat-openbsd";
|
||||
maintainers = with maintainers; [ artturin ];
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "nc";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue