nixpkgs/pkgs/by-name/vi/vibrantlinux/package.nix
Sergei Trofimovich b5bf528ee0 vibrantlinux: fix revision to contain v prefix
Without the change build fails to fetch source on `master`
https://hydra.nixos.org/build/248980589:

    trying https://github.com/libvibrant/vibrantLinux/archive/2.1.10.tar.gz
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      0    14    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (22) The requested URL returned error: 404
    error: cannot download source from any mirror
2024-02-11 11:50:12 +00:00

56 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, qt5
, makeWrapper
, libvibrant
, libX11
, libXrandr
, libxcb
, linuxPackages
}:
stdenv.mkDerivation rec {
pname = "vibrantLinux";
version = "2.1.10";
src = fetchFromGitHub {
owner = "libvibrant";
repo = "vibrantLinux";
rev = "v${version}";
hash = "sha256-rvJiVId6221hTrfEIvVO9HTMhaZ6KY44Bu3a5MinPHI=";
};
nativeBuildInputs = [
makeWrapper
] ++ (with qt5; [
qmake
wrapQtAppsHook
]);
buildInputs = [
libX11
libXrandr
libxcb
libvibrant
linuxPackages.nvidia_x11.settings.libXNVCtrl
] ++ (with qt5; [
qtbase
qttools
]);
postPatch = ''
substituteInPlace vibrantLinux.pro \
--replace '$$(PREFIX)' '$$PREFIX'
'';
meta = with lib; {
description = "A tool to automate managing your screen's saturation depending on what programs are running";
homepage = "https://github.com/libvibrant/vibrantLinux";
license = licenses.mit;
maintainers = with maintainers; [ unclamped ];
platforms = platforms.linux;
mainProgram = "vibrantLinux";
};
}