2021-01-08 00:38:42 +00: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-03-02 23:53:09 +00:00
|
|
|
version = "0.7.2";
|
2021-01-08 00:38:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "casperstorm";
|
|
|
|
repo = "ajour";
|
|
|
|
rev = version;
|
2021-03-02 23:53:09 +00:00
|
|
|
sha256 = "052qckag9vzcx6472pyk1324jq4qib0isx33z3m1m4923ydanbcz";
|
2021-01-08 00:38:42 +00:00
|
|
|
};
|
|
|
|
|
2021-03-02 23:53:09 +00:00
|
|
|
cargoSha256 = "1nsvx445jrycggidnynn9glpjjm5sh8nwsvqwyyd54k9xb4rqgj1";
|
2021-01-08 00:38:42 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
freetype
|
|
|
|
openssl
|
|
|
|
libxcb
|
|
|
|
libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|