uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/tools/X11/xbindkeys-config/default.nix
Normal file
42
pkgs/tools/X11/xbindkeys-config/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, gtk, 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.
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ gtk ];
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
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"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue