at v192 28 lines 944 B view raw
1{stdenv, fetchurl, zlib, openssl, libre}: 2stdenv.mkDerivation rec { 3 version = "0.4.6"; 4 name = "librem-${version}"; 5 src=fetchurl { 6 url = "http://www.creytiv.com/pub/rem-${version}.tar.gz"; 7 sha256 = "0rgqy9pqn730ijxvz1gk0virsf6jwjmq02s99jqqrfm3p0g6zs3w"; 8 }; 9 buildInputs = [zlib openssl libre]; 10 makeFlags = [ 11 "LIBRE_MK=${libre}/share/re/re.mk" 12 "LIBRE_INC=${libre}/include/re" 13 ''PREFIX=$(out)'' 14 ] 15 ++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" 16 ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 17 ; 18 meta = { 19 homepage = "http://www.creytiv.com/rem.html"; 20 platforms = with stdenv.lib.platforms; linux; 21 maintainers = with stdenv.lib.maintainers; [raskin]; 22 license = stdenv.lib.licenses.bsd3; 23 inherit version; 24 downloadPage = "http://www.creytiv.com/pub/"; 25 updateWalker = true; 26 downloadURLRegexp = "/rem-.*[.]tar[.].*"; 27 }; 28}