nixpkgs/pkgs/applications/misc/xdg-launch/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

58 lines
1.0 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, autoconf
, automake
, gettext
, libtool
, perl
, pkg-config
, glib
, xorg
}:
stdenv.mkDerivation rec {
pname = "xdg-launch";
version = "1.12";
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-S/0Wn1T5MSOPN6QXkzfmygHL6XTAnnMJr5Z3fBzsHEw=";
};
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 = "Command line XDG compliant launcher and tools";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.ck3d ];
};
}