Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
836 B
Nix
43 lines
836 B
Nix
{
|
|
enableX11 ? true,
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
xorg,
|
|
python3,
|
|
frame,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "grail";
|
|
version = "3.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/grail/trunk/${version}/+download/${pname}-${version}.tar.bz2";
|
|
sha256 = "1wwx5ibjdz5pyd0f5cd1n91y67r68dymxpm2lgd829041xjizvay";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
python3
|
|
frame
|
|
]
|
|
++ lib.optionals enableX11 [
|
|
xorg.libX11
|
|
xorg.libXtst
|
|
xorg.libXext
|
|
xorg.libXi
|
|
xorg.libXfixes
|
|
];
|
|
|
|
configureFlags = lib.optional enableX11 "--with-x11";
|
|
|
|
meta = {
|
|
homepage = "https://launchpad.net/canonical-multitouch/grail";
|
|
description = "Gesture Recognition And Instantiation Library";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|