2020-12-25 13:55:36 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, gettext
|
|
|
|
, libtool
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-launch";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "1.11";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# fix gettext configuration
|
|
|
|
echo 'AM_GNU_GETTEXT_VERSION' >> configure.ac
|
|
|
|
echo 'AM_GNU_GETTEXT([external])' >> configure.ac
|
|
|
|
|
|
|
|
sed -i data/*.desktop \
|
|
|
|
-e "s,/usr/bin,/$out/bin,g"
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bbidulock";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "sha256-qrBxyJ3dUNdnE1nANLKKL0cXw/Hc4qxDoY1anIRN+VA=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXrandr
|
|
|
|
glib # can be optional
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
gettext
|
|
|
|
libtool
|
|
|
|
perl # pod2man
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/bbidulock/xdg-launch";
|
|
|
|
description = "A command line XDG compliant launcher and tools";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
};
|
|
|
|
}
|