nixpkgs/pkgs/tools/misc/lockfile-progs/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

37 lines
914 B
Nix

{ lib, stdenv, fetchurl, liblockfile }:
stdenv.mkDerivation rec {
pname = "lockfile-progs";
version = "0.1.19";
src = fetchurl {
url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.tar.gz";
sha256 = "sha256-LFcEsByPR0+CkheA5Fkqknsr9qbXYWNUpsXXzVZkhX4=";
};
buildInputs = [ liblockfile ];
env.NIX_CFLAGS_COMPILE = toString [
# Needed with GCC 12
"-Wno-error=format-overflow"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/man/man1
install -s bin/* $out/bin
install man/*.1 $out/man/man1
runHook postInstall
'';
meta = {
broken = stdenv.isDarwin;
description = "Programs for locking and unlocking files and mailboxes";
homepage = "http://packages.debian.org/sid/lockfile-progs";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.bluescreen303 ];
platforms = lib.platforms.all;
};
}