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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
1.9 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2021-01-08 01:38:42 +01:00
, fetchFromGitHub
, rustPlatform
, autoPatchelfHook
, cmake
, makeWrapper
, pkg-config
, python3
, expat
, freetype
, kdialog
, zenity
, openssl
, libglvnd
2021-01-08 01:38:42 +01:00
, libX11
, libxcb
, libXcursor
, libXi
, libxkbcommon
, libXrandr
, vulkan-loader
, wayland
}:
let
rpathLibs = [
libglvnd
2021-01-08 01:38:42 +01:00
libXcursor
libXi
libxkbcommon
libXrandr
libX11
vulkan-loader
wayland
];
in rustPlatform.buildRustPackage rec {
pname = "ajour";
version = "1.3.2";
2021-01-08 01:38:42 +01:00
src = fetchFromGitHub {
owner = "casperstorm";
repo = "ajour";
rev = version;
sha256 = "sha256-oVaNLclU0EVNtxAASE8plXcC+clkwhBeb9pz1vXufV0=";
2021-01-08 01:38:42 +01:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"iced-0.3.0" = "sha256-cPQ0qqcdCMx2agSpAKSvVDBEoF/vUffGg1UkX85KmfY=";
};
};
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
];
2023-12-01 22:17:20 +01:00
postInstall = ''
mkdir -p $out/share
cp -r resources/logo $out/share/icons
install -Dm444 resources/linux/ajour.desktop -t $out/share/applications
'';
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;
broken = stdenv.isDarwin;
2021-01-08 01:38:42 +01:00
maintainers = with maintainers; [ hexa ];
};
}