2021-07-03 03:11:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, libdrm
|
|
|
|
, libGL
|
|
|
|
, atkmm
|
|
|
|
, pcre
|
2023-11-16 04:20:00 +00:00
|
|
|
, gtkmm4
|
2022-02-20 05:27:41 +00:00
|
|
|
, pugixml
|
2021-07-03 03:11:41 +00:00
|
|
|
, mesa
|
|
|
|
, pciutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "adriconf";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "2.7.2";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "mesa";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
sha256 = "sha256-0XTsYeS4tNAnGhuJ81fmjHhFS6fVq1lirui5b+ojxTQ=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ libdrm libGL atkmm pcre gtkmm4 pugixml mesa pciutils ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DENABLE_UNIT_TESTS=off" ];
|
|
|
|
|
2023-11-16 04:20:00 +00: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-03 03:11:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.freedesktop.org/mesa/adriconf/";
|
2024-10-04 16:56:33 +00:00
|
|
|
changelog = "https://gitlab.freedesktop.org/mesa/adriconf/-/releases/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "GUI tool used to configure open source graphics drivers";
|
2021-07-03 03:11:41 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ muscaln ];
|
2021-07-03 03:11:41 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "adriconf";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
}
|