nixpkgs/pkgs/tools/misc/pal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
854 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{lib, stdenv, fetchurl, glib, gettext, readline, pkg-config }:
stdenv.mkDerivation rec {
pname = "pal";
version = "0.4.3";
src = fetchurl {
url = "mirror://sourceforge/palcal/pal-${version}.tgz";
2015-09-20 13:36:31 +00:00
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)" ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib gettext readline ];
hardeningDisable = [ "format" ];
2016-02-12 13:53:04 +00:00
meta = {
homepage = "https://palcal.sourceforge.net/";
description = "Command-line calendar program that can keep track of events";
2024-04-26 11:35:31 +00:00
license = lib.licenses.gpl2Plus;
maintainers = [ ];
2021-01-15 09:19:50 +00:00
platforms = with lib.platforms; linux;
};
}