mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +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.
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitLab
|
|
, cmake
|
|
, pkg-config
|
|
, libdrm
|
|
, libGL
|
|
, atkmm
|
|
, pcre
|
|
, gtkmm4
|
|
, pugixml
|
|
, mesa
|
|
, pciutils
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "adriconf";
|
|
version = "2.7.2";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "mesa";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0XTsYeS4tNAnGhuJ81fmjHhFS6fVq1lirui5b+ojxTQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ libdrm libGL atkmm pcre gtkmm4 pugixml mesa pciutils ];
|
|
|
|
cmakeFlags = [ "-DENABLE_UNIT_TESTS=off" ];
|
|
|
|
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/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.freedesktop.org/mesa/adriconf/";
|
|
changelog = "https://gitlab.freedesktop.org/mesa/adriconf/-/releases/v${version}";
|
|
description = "GUI tool used to configure open source graphics drivers";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ muscaln ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "adriconf";
|
|
};
|
|
}
|