mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +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.
27 lines
809 B
Nix
27 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;
|
|
};
|
|
}
|