Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 _name = "liblockfile"; 5 version = "1.17"; 6 name = "${_name}-${version}"; 7 8 src = fetchurl { 9 url = "mirror://debian/pool/main/libl/${_name}/${_name}_${version}.orig.tar.gz"; 10 sha256 = "sha256-bpN/NlCvq0qsGY80i4mxykLtzrF/trsJGPZCFDzP0V4="; 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 = lib.licenses.gpl2Plus; 25 26 maintainers = [ lib.maintainers.bluescreen303 ]; 27 platforms = lib.platforms.all; 28 }; 29}