Merge pull request #106880 from ck3d/add-xdg-launch
xdg-launch: init at 1.10
This commit is contained in:
commit
e35968b934
57
pkgs/applications/misc/xdg-launch/default.nix
Normal file
57
pkgs/applications/misc/xdg-launch/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoconf
|
||||||
|
, automake
|
||||||
|
, gettext
|
||||||
|
, libtool
|
||||||
|
, perl
|
||||||
|
, pkg-config
|
||||||
|
, glib
|
||||||
|
, xorg
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "xdg-launch";
|
||||||
|
version = "1.10";
|
||||||
|
|
||||||
|
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;
|
||||||
|
sha256 = "sha256-WY1TAPnXAn5GOaP9aMHar761m1MkKm4vavLlWELWUu8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -8298,6 +8298,8 @@ in
|
|||||||
|
|
||||||
xbrightness = callPackage ../tools/X11/xbrightness { };
|
xbrightness = callPackage ../tools/X11/xbrightness { };
|
||||||
|
|
||||||
|
xdg-launch = callPackage ../applications/misc/xdg-launch { };
|
||||||
|
|
||||||
xkbvalidate = callPackage ../tools/X11/xkbvalidate { };
|
xkbvalidate = callPackage ../tools/X11/xkbvalidate { };
|
||||||
|
|
||||||
xfstests = callPackage ../tools/misc/xfstests { };
|
xfstests = callPackage ../tools/misc/xfstests { };
|
||||||
|
Loading…
Reference in New Issue
Block a user