mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-16 12:20:10 +00:00
32 lines
729 B
Nix
32 lines
729 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "liblockfile";
|
|
version = "1.17";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://debian/pool/main/libl/liblockfile/liblockfile_${finalAttrs.version}.orig.tar.gz";
|
|
sha256 = "sha256-bpN/NlCvq0qsGY80i4mxykLtzrF/trsJGPZCFDzP0V4=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -i -e 's/ -g [^ ]* / /' Makefile.in
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/{bin,lib,include,man} $out/man/man{1,3}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Shared library with NFS-safe locking functions";
|
|
mainProgram = "dotlockfile";
|
|
homepage = "http://packages.debian.org/unstable/libs/liblockfile1";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|