mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
freebsd.libcasper: init
This commit is contained in:
parent
e7ff42b521
commit
f0f17c0ce6
26
pkgs/os-specific/bsd/freebsd/pkgs/libcasper.nix
Normal file
26
pkgs/os-specific/bsd/freebsd/pkgs/libcasper.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
mkDerivation,
|
||||||
|
libnv,
|
||||||
|
}:
|
||||||
|
mkDerivation {
|
||||||
|
path = "lib/libcasper/libcasper";
|
||||||
|
extraPaths = [
|
||||||
|
"lib/Makefile.inc"
|
||||||
|
"lib/libcasper"
|
||||||
|
];
|
||||||
|
buildInputs = [ libnv ];
|
||||||
|
|
||||||
|
MK_TESTS = "no";
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"STRIP=-s" # flag to install, not command
|
||||||
|
"CFLAGS=-DWITH_CASPER"
|
||||||
|
] ++ lib.optional (!stdenv.hostPlatform.isFreeBSD) "MK_WERROR=no";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
make -C $BSDSRCDIR/lib/libcasper/services $makeFlags CFLAGS="-DWITH_CASPER -I$out/include"
|
||||||
|
make -C $BSDSRCDIR/lib/libcasper/services $makeFlags install
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user