2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, gtk, pkg-config, procps, makeWrapper, ... }:
|
2015-02-09 01:06:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xbindkeys-config";
|
2015-02-09 01:06:13 +00:00
|
|
|
version = "0.1.3";
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ gtk ];
|
2015-02-09 01:06:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/x/xbindkeys-config/xbindkeys-config_${version}.orig.tar.gz";
|
|
|
|
sha256 = "1rs3li2hyig6cdzvgqlbz0vw6x7rmgr59qd6m0cvrai8xhqqykda";
|
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-24 16:00:25 +00:00
|
|
|
|
2015-02-09 01:06:13 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://packages.debian.org/source/xbindkeys-config";
|
2015-02-09 01:06:13 +00:00
|
|
|
description = "Graphical interface for configuring xbindkeys";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [benley];
|
|
|
|
platforms = with lib.platforms; linux;
|
2015-02-09 01:06:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
}
|