mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{lib, stdenv, fetchFromGitHub, fetchpatch, libX11}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "wayv";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mikemb";
|
|
repo = pname;
|
|
rev = "b716877603250f690f08b593bf30fd5e8a93a872";
|
|
sha256 = "046dvaq6na1fyxz5nrjg13aaz6ific9wbygck0dknqqfmmjrsv3b";
|
|
};
|
|
|
|
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";
|
|
})
|
|
];
|
|
|
|
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 = "Gesture control for X11";
|
|
license = lib.licenses.gpl2Plus ;
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.linux;
|
|
homepage = "https://github.com/mikemb/wayV";
|
|
mainProgram = "wayv";
|
|
};
|
|
}
|