mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +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.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkg-config, cmake, libinput, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gebaar-libinput";
|
|
version = "0.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Coffee2CodeNL";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1kqcgwkia1p195xr082838dvj1gqif9d63i8a52jb0lc32zzizh6";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [
|
|
# fix build with gcc 11+
|
|
(fetchpatch {
|
|
url = "https://github.com/9ary/gebaar-libinput-fork/commit/25cac08a5f1aed1951b03de12fa0010a0964967d.patch";
|
|
hash = "sha256-CtgfMTBCXotiPAXc7cA3h+7Kb0NHFi/q7w72IY32CyA=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
buildInputs = [ libinput zlib ];
|
|
|
|
meta = with lib; {
|
|
description = "Gebaar, A Super Simple WM Independent Touchpad Gesture Daemon for libinput";
|
|
mainProgram = "gebaard";
|
|
homepage = "https://github.com/Coffee2CodeNL/gebaar-libinput";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ colemickens lovesegfault ];
|
|
};
|
|
}
|