nixpkgs/pkgs/by-name/gr/grail/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

26 lines
787 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;
};
}