diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-09-29 07:48:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 07:48:23 -0500 |
commit | fff9ae0802876e39f99f22c608ee561f538922ba (patch) | |
tree | 98cfb7a9605f4752f57a5d6d12c46c7fcdc61519 /pkgs/tools/misc | |
parent | 2436175f6351b265398405ece62a2124d7c68440 (diff) | |
parent | dfbbdfd387cbe951342694a8bed2a375a130d7ad (diff) | |
download | nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar.gz nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar.bz2 nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar.lz nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar.xz nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.tar.zst nixlib-fff9ae0802876e39f99f22c608ee561f538922ba.zip |
Merge pull request #69273 from marsam/init-xprite-editor
xprite-editor: init at 2019-09-22
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/xprite-editor/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/misc/xprite-editor/default.nix b/pkgs/tools/misc/xprite-editor/default.nix new file mode 100644 index 000000000000..e2615bef6ce1 --- /dev/null +++ b/pkgs/tools/misc/xprite-editor/default.nix @@ -0,0 +1,43 @@ +{ 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 = stdenv.lib.optionals stdenv.isLinux [ gtk3 ] + ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit ]; + + nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config python3 ]; + + cargoSha256 = "0cd58888l7pjmghin31ha780yhs2pz67b10jysyasdw0a88m0dwy"; + + cargoBuildFlags = [ "--bin" "xprite-native" ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/rickyhan/xprite-editor"; + description = "Pixel art editor"; + license = licenses.gpl3; + maintainers = [ maintainers.marsam ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} |