Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl} : 2 3stdenv.mkDerivation rec { 4 pname = "libbtree"; 5 version = "0.0.1alpha2"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/multitran/libbtree-${version}.tar.bz2"; 9 sha256 = "34a584e45058950337ff9342693b6739b52c3ce17e66440526c4bd6f9575802c"; 10 }; 11 patchPhase = '' 12 sed -i -e 's@\$(DESTDIR)/usr@'$out'@' src/Makefile; 13 ''; 14 15 meta = { 16 homepage = "https://multitran.sourceforge.net/"; 17 description = "Multitran lib: library for reading Multitran's BTREE database format"; 18 license = lib.licenses.gpl2; 19 platforms = lib.platforms.linux; 20 }; 21}