mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
30 lines
852 B
Nix
30 lines
852 B
Nix
{lib, stdenv, fetchurl, glib, gettext, readline, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pal-0.4.3";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/palcal/${name}.tgz";
|
|
sha256 = "072mahxvd7lcvrayl32y589w4v3vh7bmlcnhiksjylknpsvhqiyf";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i -e 's/-o root//' -e 's,ESTDIR}/etc,ESTDIR}'$out/etc, src/Makefile
|
|
sed -i -e 's,/etc/pal\.conf,'$out/etc/pal.conf, src/input.c
|
|
'';
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ glib gettext readline ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = {
|
|
homepage = "http://palcal.sourceforge.net/";
|
|
description = "Command-line calendar program that can keep track of events";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [viric];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|