Unverified Commit 15c3433a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

ajour: drop (#389191)

parents 178d473d 48b9e283
Loading
Loading
Loading
Loading
+0 −101
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchFromGitHub,
  rustPlatform,
  autoPatchelfHook,
  cmake,
  makeWrapper,
  pkg-config,
  python3,
  expat,
  freetype,
  kdialog,
  zenity,
  openssl,
  libglvnd,
  libX11,
  libxcb,
  libXcursor,
  libXi,
  libxkbcommon,
  libXrandr,
  vulkan-loader,
  wayland,
}:

let
  rpathLibs = [
    libglvnd
    libXcursor
    libXi
    libxkbcommon
    libXrandr
    libX11
    vulkan-loader
    wayland
  ];

in
rustPlatform.buildRustPackage rec {
  pname = "ajour";
  version = "1.3.2";

  src = fetchFromGitHub {
    owner = "casperstorm";
    repo = "ajour";
    rev = version;
    sha256 = "sha256-oVaNLclU0EVNtxAASE8plXcC+clkwhBeb9pz1vXufV0=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-/bmPqKxhPt9AGHRPGPE8JzaZKcTAWIRzvR3FiTCVMho=";

  nativeBuildInputs = [
    autoPatchelfHook
    cmake
    makeWrapper
    pkg-config
    python3
  ];

  buildInputs = [
    expat
    freetype
    openssl
    libxcb
    libX11
    libxkbcommon
  ];

  postInstall = ''
    mkdir -p $out/share
    cp -r resources/logo $out/share/icons
    install -Dm444 resources/linux/ajour.desktop -t $out/share/applications
  '';

  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";
    mainProgram = "ajour";
    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.hostPlatform.isDarwin;
    maintainers = with maintainers; [ hexa ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ mapAliases {
  aeon = throw "aeon has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2024-07-15
  afl = throw "afl has been removed as the upstream project was archived. Consider using 'aflplusplus'"; # Added 2024-04-21
  agda-pkg = throw "agda-pkg has been removed due to being unmaintained"; # Added 2024-09-10"
  ajour = throw "ajour has been removed, the project was archived upstream on 2024-09-17."; # Added 2025-03-12
  alass = throw "'alass' has been removed due to being unmaintained upstream"; # Added 2025-01-25
  alsaLib = throw "'alsaLib' has been renamed to/replaced by 'alsa-lib'"; # Converted to throw 2024-10-17
  alsaOss = throw "'alsaOss' has been renamed to/replaced by 'alsa-oss'"; # Converted to throw 2024-10-17
+0 −4
Original line number Diff line number Diff line
@@ -956,10 +956,6 @@ with pkgs;
  aioblescan = with python3Packages; toPythonApplication aioblescan;
  ajour = callPackage ../tools/games/ajour {
    inherit (plasma5Packages) kdialog;
  };
  inherit (recurseIntoAttrs (callPackage ../tools/package-management/akku { }))
    akku akkuPackages;