Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 768 B view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 _name = "liblockfile"; 5 version = "1.14"; 6 name = "${_name}-${version}"; 7 8 src = fetchurl { 9 url = "mirror://debian/pool/main/libl/${_name}/${_name}_${version}.orig.tar.gz"; 10 sha256 = "0q6hn78fnzr6lhisg85a948rmpsd9rx67skzx3vh9hnbx2ix8h5b"; 11 }; 12 13 preConfigure = '' 14 sed -i -e 's/ -g [^ ]* / /' Makefile.in 15 ''; 16 17 preInstall = '' 18 mkdir -p $out/{bin,lib,include,man} $out/man/man{1,3} 19 ''; 20 21 meta = { 22 description = "Shared library with NFS-safe locking functions"; 23 homepage = http://packages.debian.org/unstable/libs/liblockfile1; 24 license = stdenv.lib.licenses.gpl2Plus; 25 26 maintainers = [ stdenv.lib.maintainers.bluescreen303 ]; 27 platforms = stdenv.lib.platforms.all; 28 }; 29}