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.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, meson, pkg-config, ninja
|
|
, wayland, wayland-scanner, wlr-protocols, gtk3, glib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wl-gammactl";
|
|
version = "unstable-2021-09-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mischw";
|
|
repo = pname;
|
|
rev = "e2385950d97a3baf1b6e2f064dd419ccec179586";
|
|
sha256 = "8iMJK4O/sNIGPOBZQEfK47K6OjT6sxYFe19O2r/VSr8=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ meson pkg-config ninja glib wayland-scanner ];
|
|
buildInputs = [ wayland gtk3 ];
|
|
|
|
postUnpack = ''
|
|
rmdir source/wlr-protocols
|
|
ln -s ${wlr-protocols}/share/wlr-protocols source
|
|
'';
|
|
|
|
patches = [ ./dont-need-wlroots.diff ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace meson.build --replace "git = find_program('git')" "git = 'false'"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Contrast, brightness, and gamma adjustments for Wayland";
|
|
longDescription = ''
|
|
Small GTK GUI application to set contrast, brightness, and gamma for wayland compositors which
|
|
support the wlr-gamma-control protocol extension.
|
|
'';
|
|
homepage = "https://github.com/mischw/wl-gammactl";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ lodi ];
|
|
mainProgram = "wl-gammactl";
|
|
};
|
|
}
|