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
47
pkgs/tools/networking/bsd-finger/default.nix
Normal file
47
pkgs/tools/networking/bsd-finger/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, buildClient ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
srcName = "bsd-finger";
|
||||
pname = srcName + lib.optionalString (!buildClient) "d";
|
||||
version = "0.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://ibiblioPubLinux/system/network/finger/${srcName}-${version}.tar.gz";
|
||||
hash = "sha256-hIhdZo0RfvUOAccDSkXYND10fOxiEuQOjQgVG8GOE/o=";
|
||||
};
|
||||
|
||||
# outputs = [ "out" "man" ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
|
||||
|
||||
patches = [
|
||||
./ubuntu-0.17-9.patch
|
||||
];
|
||||
|
||||
preBuild = let
|
||||
srcdir = if buildClient then "finger" else "fingerd";
|
||||
in ''
|
||||
cd ${srcdir}
|
||||
'';
|
||||
|
||||
preInstall = let
|
||||
bindir = if buildClient then "bin" else "sbin";
|
||||
mandir = if buildClient then "man/man1" else "man/man8";
|
||||
in ''
|
||||
mkdir -p $out/${bindir} $out/${mandir}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
if buildClient
|
||||
then "User information lookup program"
|
||||
else "Remote user information server";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.bsdOriginal;
|
||||
};
|
||||
}
|
||||
# TODO: multiple outputs (manpage)
|
||||
Loading…
Add table
Add a link
Reference in a new issue