Commit 68467caa authored by aleksana's avatar aleksana
Browse files

xprite-editor: remove

parent dae90a0d
Loading
Loading
Loading
Loading
+0 −47
Original line number Diff line number Diff line
{ lib, stdenv
, fetchFromGitHub
, rustPlatform
, gtk3
, AppKit
, pkg-config
, python3
}:

rustPlatform.buildRustPackage rec {
  pname = "xprite-editor-unstable";
  version = "2019-09-22";

  src = fetchFromGitHub {
    owner = "rickyhan";
    repo = "xprite-editor";
    rev = "7f899dff982642927024540e4bafd74e4ea5e52a";
    sha256 = "1k6k8y8gg1vdmyjz27q689q9rliw0rrnzwlpjcd4vlc6swaq9ahx";
    fetchSubmodules = true;
    # Rename unicode file name which leads to different checksums on HFS+
    # vs. other filesystems because of unicode normalization.
    postFetch = ''
      mv $out/config/palettes/Sweet\ Guaran*.hex $out/config/palettes/Sweet\ Guarana.hex
    '';
  };

  buildInputs = lib.optionals stdenv.isLinux [ gtk3 ]
    ++ lib.optionals stdenv.isDarwin [ AppKit ];

  nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config python3 ];

  cargoHash = "sha256-k53nSYBIJJHPivz6IvF5t0eZVkTvj1ZT3RyHdoy5MXw=";

  cargoBuildFlags = [ "--bin" "xprite-native" ];

  meta = with lib; {
    # error[E0034]: multiple applicable items in scope
    # multiple `clamp` found
    # https://github.com/NixOS/nixpkgs/issues/146949
    broken = true;
    homepage = "https://github.com/rickyhan/xprite-editor";
    description = "Pixel art editor";
    license = licenses.gpl3;
    maintainers = [ ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1676,6 +1676,7 @@ mapAliases ({
  xmlada = gnatPackages.xmlada; # Added 2024-02-25
  xmr-stak = throw "xmr-stak has been removed from nixpkgs because it was broken"; # Added 2024-07-15
  xonsh-unwrapped = python3Packages.xonsh; # Added 2024-06-18
  xprite-editor = throw "'xprite-editor' has been removed due to lack of maintenance upstream. Consider using 'pablodraw' or 'aseprite' instead"; # Added 2024-09-14
  xtrt = throw "xtrt has been removed due to being abandoned"; # Added 2023-05-25
  xulrunner = firefox-unwrapped; # Added 2023-11-03
  xvfb_run = xvfb-run; # Added 2021-05-07
+0 −4
Original line number Diff line number Diff line
@@ -14225,10 +14225,6 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  xprite-editor = callPackage ../tools/misc/xprite-editor {
    inherit (darwin.apple_sdk.frameworks) AppKit;
  };
  xq-xml = callPackage ../tools/text/xml/xq { };
  xsecurelock = callPackage ../tools/X11/xsecurelock { };