2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, gtk, pkgconfig, procps, makeWrapper, ... }:
|
2015-02-09 02:06:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xbindkeys-config";
|
2015-02-09 02:06:13 +01:00
|
|
|
version = "0.1.3";
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtk makeWrapper ];
|
2015-02-09 02:06:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/x/xbindkeys-config/xbindkeys-config_${version}.orig.tar.gz";
|
|
|
|
sha256 = "1rs3li2hyig6cdzvgqlbz0vw6x7rmgr59qd6m0cvrai8xhqqykda";
|
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-24 17:00:25 +01:00
|
|
|
|
2015-02-09 02:06:13 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://packages.debian.org/source/xbindkeys-config";
|
2015-02-09 02:06:13 +01:00
|
|
|
description = "Graphical interface for configuring xbindkeys";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [benley];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./xbindkeys-config-patch1.patch ];
|
|
|
|
|
|
|
|
# killall is dangerous on non-gnu platforms. Use pkill instead.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace middle.c --replace "killall" "pkill -x"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
gzip -c ${./xbindkeys-config.1} > $out/share/man/man1/xbindkeys-config.1.gz
|
|
|
|
cp xbindkeys_config $out/bin/xbindkeys-config
|
|
|
|
wrapProgram $out/bin/xbindkeys-config --prefix PATH ":" "${procps}/bin"
|
|
|
|
'';
|
|
|
|
}
|