diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-25 21:07:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 21:07:17 +0100 |
commit | 2db1225fb52298cbb5489e5da53f2293bfa2c706 (patch) | |
tree | f8677cf2ebf182f4038267f29947b5457b2a9a8d /pkgs | |
parent | fc5c93018166d3efad208791e77c013f6ab97ec9 (diff) | |
parent | 0ffffcc5da7313f40a70384beddcef4ea9dfbdf5 (diff) |
Merge pull request #108738 from mweinelt/ajour
ajour: init at 0.6.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/games/ajour/default.nix | 81 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 86 insertions, 0 deletions
diff --git a/pkgs/tools/games/ajour/default.nix b/pkgs/tools/games/ajour/default.nix new file mode 100644 index 000000000000..82bb6c54aa7a --- /dev/null +++ b/pkgs/tools/games/ajour/default.nix @@ -0,0 +1,81 @@ +{ 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"; + version = "0.6.3"; + + src = fetchFromGitHub { + owner = "casperstorm"; + repo = "ajour"; + rev = version; + sha256 = "080759j18pws5c8bmqn1bwvmlaq8k01kzj7bnwncwinl5j35mi2j"; + }; + + cargoSha256 = "1614lln5zh2j2np68pllwcqmywvzzmkj71b158fw2d98ijbi9lmw"; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a758f91d35f2..f1787d55a05e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -721,6 +721,11 @@ in aj-snapshot = callPackage ../applications/audio/aj-snapshot { }; + ajour = callPackage ../tools/games/ajour { + inherit (gnome3) zenity; + inherit (plasma5Packages) kdialog; + }; + albert = libsForQt5.callPackage ../applications/misc/albert {}; metapixel = callPackage ../tools/graphics/metapixel { }; |