nixpkgs/pkgs/tools/graphics/adriconf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.2 KiB
Nix
Raw Normal View History

2021-07-01 17:01:39 +03:00
{ stdenv
, lib
, fetchFromGitLab
, cmake
, pkg-config
, libdrm
, libGL
, atkmm
, pcre
2023-10-21 06:53:17 +03:00
, gtkmm4
2022-01-23 13:03:28 +03:00
, pugixml
2021-07-01 17:01:39 +03:00
, mesa
, pciutils
}:
stdenv.mkDerivation rec {
pname = "adriconf";
2024-06-09 08:19:24 +03:00
version = "2.7.2";
2021-07-01 17:01:39 +03:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mesa";
repo = pname;
rev = "v${version}";
2024-06-09 08:19:24 +03:00
sha256 = "sha256-0XTsYeS4tNAnGhuJ81fmjHhFS6fVq1lirui5b+ojxTQ=";
2021-07-01 17:01:39 +03:00
};
nativeBuildInputs = [ cmake pkg-config ];
2023-10-21 06:53:17 +03:00
buildInputs = [ libdrm libGL atkmm pcre gtkmm4 pugixml mesa pciutils ];
2021-07-01 17:01:39 +03:00
cmakeFlags = [ "-DENABLE_UNIT_TESTS=off" ];
2023-10-21 06:53:17 +03:00
postInstall = ''
install -Dm444 ../flatpak/org.freedesktop.adriconf.metainfo.xml \
-t $out/share/metainfo/
install -Dm444 ../flatpak/org.freedesktop.adriconf.desktop \
-t $out/share/applications/
install -Dm444 ../flatpak/org.freedesktop.adriconf.png \
-t $out/share/icons/hicolor/256x256/apps/
'';
2021-07-01 17:01:39 +03:00
meta = with lib; {
homepage = "https://gitlab.freedesktop.org/mesa/adriconf/";
description = "GUI tool used to configure open source graphics drivers";
license = licenses.gpl3Plus;
2022-01-27 10:48:49 +03:00
maintainers = with maintainers; [ muscaln ];
2021-07-01 17:01:39 +03:00
platforms = platforms.linux;
2023-11-23 05:51:17 +03:00
mainProgram = "adriconf";
2021-07-01 17:01:39 +03:00
};
}