diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-10 18:48:59 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-14 11:40:49 +0700 |
commit | 1a3b74cf751489d7780f4b8a80e300cf7923c935 (patch) | |
tree | 8b49997dc6b9493302124d9fb0f45884aa7463bd /pkgs/servers/p910nd | |
parent | 88ff5e40ea534d038bf8c125e528262811586bb4 (diff) |
p910nd: fix darwin build
Diffstat (limited to 'pkgs/servers/p910nd')
-rw-r--r-- | pkgs/servers/p910nd/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/p910nd/default.nix b/pkgs/servers/p910nd/default.nix index e5e4df1a292b8..9cd06a3ebc6cf 100644 --- a/pkgs/servers/p910nd/default.nix +++ b/pkgs/servers/p910nd/default.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { }; postPatch = '' - sed -e "s|/usr||g" -i Makefile + substituteInPlace Makefile --replace "/usr" "" + substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc" ''; makeFlags = [ "DESTDIR=$(out)" "BINDIR=/bin" ]; @@ -39,6 +40,6 @@ stdenv.mkDerivation rec { homepage = "http://p910nd.sourceforge.net/"; downloadPage = "https://sourceforge.net/projects/p910nd/"; license = licenses.gpl2; - platforms = platforms.linux; + platforms = platforms.unix; }; } |