34 lines
753 B
Nix
34 lines
753 B
Nix
{
|
|
lib,
|
|
src,
|
|
stdenv,
|
|
}:
|
|
let
|
|
isFreebsdCross = !stdenv.buildPlatform.isFreeBSD && stdenv.hostPlatform.isFreeBSD;
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "where-are-my-friends";
|
|
version = "0.1.0";
|
|
inherit src;
|
|
|
|
makeFlags = [
|
|
"prefix=$(out)"
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
];
|
|
|
|
postFixup = lib.optionalString isFreebsdCross ''
|
|
patchelf --set-interpreter /usr/libexec/ld-elf.so.1 "$out/bin/wamf"
|
|
patchelf --remove-rpath "$out/bin/wamf"
|
|
'';
|
|
|
|
hardeningDisable = lib.optionals isFreebsdCross [ "fortify" ];
|
|
|
|
meta = {
|
|
description = "RCON -> Bluemap player position API converter";
|
|
homepage = "https://git.pvv.ntnu.no/Projects/where-are-my-friends";
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "wamf";
|
|
};
|
|
}
|
|
|