nixpkgs/pkgs/development/libraries/frame/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
809 B
Nix

{ enableX11 ? true
, lib, stdenv, fetchurl, pkg-config, xorg }:
stdenv.mkDerivation rec {
pname = "frame";
version = "2.5.0";
src = fetchurl {
url = "https://launchpad.net/frame/trunk/v${version}/+download/${pname}-${version}.tar.xz";
sha256 = "bc2a20cd3ac1e61fe0461bd3ee8cb250dbcc1fa511fad0686d267744e9c78f3a";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
stdenv
] ++ lib.optionals enableX11 [xorg.xorgserver xorg.libX11 xorg.libXext xorg.libXi];
configureFlags = lib.optional enableX11 "--with-x11";
meta = {
homepage = "https://launchpad.net/frame";
description = "Handles the buildup and synchronization of a set of simultaneous touches";
mainProgram = "frame-test-x11";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
};
}