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
62
pkgs/tools/X11/keynav/default.nix
Normal file
62
pkgs/tools/X11/keynav/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, libX11
|
||||
, xorgproto
|
||||
, libXtst
|
||||
, libXi
|
||||
, libXext
|
||||
, libXinerama
|
||||
, libXrandr
|
||||
, glib
|
||||
, cairo
|
||||
, xdotool
|
||||
}:
|
||||
|
||||
let release = "20180821"; in
|
||||
stdenv.mkDerivation {
|
||||
pname = "keynav";
|
||||
version = "0.${release}.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jordansissel";
|
||||
repo = "keynav";
|
||||
rev = "78f9e076a5618aba43b030fbb9344c415c30c1e5";
|
||||
sha256 = "0hmc14fj612z5h7gjgk95zyqab3p35c4a99snnblzxfg0p3x2f1d";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
libXtst
|
||||
libXi
|
||||
libXext
|
||||
libXinerama
|
||||
libXrandr
|
||||
glib
|
||||
cairo
|
||||
xdotool
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
echo >>VERSION MAJOR=0
|
||||
echo >>VERSION RELEASE=${release}
|
||||
echo >>VERSION REVISION=0
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/keynav/doc
|
||||
cp keynav $out/bin
|
||||
cp keynavrc $out/share/keynav/doc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate X11 mouse clicks from keyboard";
|
||||
homepage = "https://www.semicomplete.com/projects/keynav/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue