nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 862 B view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 libtoxcore, 6 conf ? null, 7}: 8 9let 10 configFile = lib.optionalString (conf != null) (builtins.toFile "config.h" conf); 11 12in 13stdenv.mkDerivation { 14 pname = "ratox"; 15 version = "0.4.20180303"; 16 17 src = fetchgit { 18 url = "git://git.2f30.org/ratox.git"; 19 rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb"; 20 sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74"; 21 }; 22 23 buildInputs = [ libtoxcore ]; 24 25 preConfigure = '' 26 substituteInPlace config.mk \ 27 --replace '-lsodium -lopus -lvpx ' "" 28 29 ${lib.optionalString (conf != null) "cp ${configFile} config.def.h"} 30 ''; 31 32 makeFlags = [ "PREFIX=$(out)" ]; 33 34 meta = { 35 description = "FIFO based tox client"; 36 mainProgram = "ratox"; 37 homepage = "http://ratox.2f30.org/"; 38 license = lib.licenses.isc; 39 platforms = lib.platforms.linux; 40 }; 41}