2022-04-27 09:35:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, autoPatchelfHook
|
|
|
|
, cmake
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, expat
|
|
|
|
, freetype
|
|
|
|
, kdialog
|
|
|
|
, zenity
|
|
|
|
, openssl
|
2021-12-19 01:06:50 +00:00
|
|
|
, libglvnd
|
2021-02-05 17:12:51 +00:00
|
|
|
, libX11
|
|
|
|
, libxcb
|
|
|
|
, libXcursor
|
|
|
|
, libXi
|
|
|
|
, libxkbcommon
|
|
|
|
, libXrandr
|
|
|
|
, vulkan-loader
|
|
|
|
, wayland
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
rpathLibs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
libglvnd
|
2021-02-05 17:12:51 +00:00
|
|
|
libXcursor
|
|
|
|
libXi
|
|
|
|
libxkbcommon
|
|
|
|
libXrandr
|
|
|
|
libX11
|
|
|
|
vulkan-loader
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
|
|
|
in rustPlatform.buildRustPackage rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "ajour";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.3.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "casperstorm";
|
|
|
|
repo = "ajour";
|
|
|
|
rev = version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-oVaNLclU0EVNtxAASE8plXcC+clkwhBeb9pz1vXufV0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"iced-0.3.0" = "sha256-cPQ0qqcdCMx2agSpAKSvVDBEoF/vUffGg1UkX85KmfY=";
|
|
|
|
};
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
freetype
|
|
|
|
openssl
|
|
|
|
libxcb
|
|
|
|
libX11
|
2021-08-08 23:34:03 +00:00
|
|
|
libxkbcommon
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r resources/logo $out/share/icons
|
|
|
|
install -Dm444 resources/linux/ajour.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00: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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ajour";
|
2021-02-05 17:12:51 +00:00
|
|
|
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;
|
2022-04-27 09:35:20 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|