nixpkgs-suyu/pkgs/tools/games/ajour/default.nix

83 lines
1.6 KiB
Nix
Raw Normal View History

2021-01-08 01:38:42 +01:00
{ lib
, fetchFromGitHub
, rustPlatform
, autoPatchelfHook
, cmake
, makeWrapper
, pkg-config
, python3
, expat
, freetype
, kdialog
, zenity
, openssl
, libX11
, libxcb
, libXcursor
, libXi
, libxkbcommon
, libXrandr
, vulkan-loader
, wayland
}:
let
rpathLibs = [
libXcursor
libXi
libxkbcommon
libXrandr
libX11
vulkan-loader
wayland
];
in rustPlatform.buildRustPackage rec {
pname = "Ajour";
2021-09-14 19:32:03 +02:00
version = "1.3.1";
2021-01-08 01:38:42 +01:00
src = fetchFromGitHub {
owner = "casperstorm";
repo = "ajour";
rev = version;
2021-09-14 19:32:03 +02:00
sha256 = "sha256-tUm5d2JTvYyNFnKgId8mivWTB+v4TURZX293fMd11pk=";
2021-01-08 01:38:42 +01:00
};
2021-09-14 19:32:03 +02:00
cargoSha256 = "sha256-SPmfXJLIA4OGEm/S2mi5xmIE9ng7hY3aHm/PCT7pg0E=";
2021-01-08 01:38:42 +01:00
nativeBuildInputs = [
autoPatchelfHook
cmake
makeWrapper
pkg-config
python3
];
buildInputs = [
expat
freetype
openssl
libxcb
libX11
2021-08-08 01:15:49 +02:00
libxkbcommon
2021-01-08 01:38:42 +01:00
];
fixupPhase = ''
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $out/bin/ajour)" $out/bin/ajour
wrapProgram $out/bin/ajour --prefix PATH ":" ${lib.makeBinPath [ zenity kdialog ]}
'';
meta = with lib; {
description = "World of Warcraft addon manager written in Rust";
longDescription = ''
Ajour is a World of Warcraft addon manager written in Rust with a
strong focus on performance and simplicity. The project is
completely advertisement free, privacy respecting and open source.
'';
homepage = "https://github.com/casperstorm/ajour";
changelog = "https://github.com/casperstorm/ajour/blob/master/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}