2022-06-16 17:23:12 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, fetchpatch, libX11}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wayv";
|
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mikemb";
|
|
|
|
repo = pname;
|
|
|
|
rev = "b716877603250f690f08b593bf30fd5e8a93a872";
|
|
|
|
sha256 = "046dvaq6na1fyxz5nrjg13aaz6ific9wbygck0dknqqfmmjrsv3b";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# Pull patch pending upstream inclusion for -fno-common toolchain support:
|
|
|
|
# https://github.com/mikemb/wayV/pull/1
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/mikemb/wayV/commit/b927793e2a2c92ff1f97b9df9e58c26e73e72012.patch";
|
|
|
|
sha256 = "19i10966b0n710dic64p5ajsllkjnz16bp0crxfy9vv08hj1xygi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
make -C doc install
|
|
|
|
mkdir -p "$out"/share/doc/wayv
|
|
|
|
cp [A-Z][A-Z]* "$out"/share/doc/wayv
|
|
|
|
cp doc/[A-Z][A-Z]* "$out"/share/doc/wayv
|
|
|
|
cp doc/*.txt "$out"/share/doc/wayv
|
|
|
|
cp doc/*.jpg "$out"/share/doc/wayv
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A gesture control for X11";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mikemb/wayV";
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wayv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|