Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
gtk2,
pkg-config,
procps,
makeWrapper,
...
}:
stdenv.mkDerivation rec {
pname = "xbindkeys-config";
version = "0.1.3";
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10.
env.NIX_CFLAGS_COMPILE = "-fcommon";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [ gtk2 ];
src = fetchurl {
url = "mirror://debian/pool/main/x/xbindkeys-config/xbindkeys-config_${version}.orig.tar.gz";
sha256 = "1rs3li2hyig6cdzvgqlbz0vw6x7rmgr59qd6m0cvrai8xhqqykda";
};
hardeningDisable = [ "format" ];
meta = {
homepage = "https://packages.debian.org/source/xbindkeys-config";
description = "Graphical interface for configuring xbindkeys";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ benley ];
platforms = with lib.platforms; linux;
mainProgram = "xbindkeys-config";
};
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"
'';
}