mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
ratox: 0.4 -> 0.4.20180303
This commit is contained in:
parent
15268306fe
commit
058df14f81
2 changed files with 10 additions and 13 deletions
|
@ -5,22 +5,24 @@ with stdenv.lib;
|
|||
|
||||
let
|
||||
configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ratox-0.4";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "ratox-0.4.20180303";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://git.2f30.org/ratox.git";
|
||||
rev = "0db821b7bd566f6cfdc0cc5a7bbcc3e5e92adb4c";
|
||||
sha256 = "0wmf8hydbcq4bkpsld9vnqw4zfzf3f04vhgwy17nd4p5p389fbl5";
|
||||
rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb";
|
||||
sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74";
|
||||
};
|
||||
|
||||
patches = [ ./ldlibs.patch ];
|
||||
|
||||
buildInputs = [ libtoxcore ];
|
||||
|
||||
preConfigure = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||
preConfigure = ''
|
||||
substituteInPlace config.mk \
|
||||
--replace '-lsodium -lopus -lvpx ' ""
|
||||
|
||||
${optionalString (conf!=null) "cp ${configFile} config.def.h"}
|
||||
'';
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
--- a/config.mk
|
||||
+++ b/config.mk
|
||||
@@ -13 +13 @@ LDFLAGS = -L/usr/local/lib
|
||||
-LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lsodium -lopus -lvpx -lm -lpthread
|
||||
+LDLIBS = -ltoxcore -ltoxav -ltoxencryptsave -lm -lpthread
|
Loading…
Reference in a new issue