aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/editors/aseprite
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/aseprite')
-rw-r--r--nixpkgs/pkgs/applications/editors/aseprite/allegro-glibc-2.30.patch8
-rw-r--r--nixpkgs/pkgs/applications/editors/aseprite/default.nix12
-rw-r--r--nixpkgs/pkgs/applications/editors/aseprite/skia.nix4
3 files changed, 19 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/applications/editors/aseprite/allegro-glibc-2.30.patch b/nixpkgs/pkgs/applications/editors/aseprite/allegro-glibc-2.30.patch
new file mode 100644
index 00000000000..94c70da276c
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/aseprite/allegro-glibc-2.30.patch
@@ -0,0 +1,8 @@
+diff --git a/src/she/CMakeLists.txt b/src/she/CMakeLists.txt
+index 4909ff1..02fa145 100644
+--- a/src/she/CMakeLists.txt
++++ b/src/she/CMakeLists.txt
+@@ -23,2 +23,3 @@ if(USE_ALLEG4_BACKEND)
+ add_definitions(-DUSE_MOUSE_POLLER)
++ add_definitions(-DALLEGRO_NO_FIX_ALIASES)
+ endif()
diff --git a/nixpkgs/pkgs/applications/editors/aseprite/default.nix b/nixpkgs/pkgs/applications/editors/aseprite/default.nix
index 170fde7b9ca..6e6d7db8177 100644
--- a/nixpkgs/pkgs/applications/editors/aseprite/default.nix
+++ b/nixpkgs/pkgs/applications/editors/aseprite/default.nix
@@ -6,12 +6,16 @@
, cmark
}:
+# Unfree version is not redistributable:
+# https://dev.aseprite.org/2016/09/01/new-source-code-license/
+# Consider supporting the developer: https://aseprite.org/#buy
+
let
skia = callPackage ./skia.nix {};
in
stdenv.mkDerivation rec {
pname = "aseprite";
- version = if unfree then "1.2.11" else "1.1.7";
+ version = if unfree then "1.2.16.3" else "1.1.7";
src = fetchFromGitHub {
owner = "aseprite";
@@ -19,7 +23,7 @@ stdenv.mkDerivation rec {
rev = "v${version}";
fetchSubmodules = true;
sha256 = if unfree
- then "1illr51jpg5g6nx29rav9dllyy5lzyyn7lj2fhrnpz1ysqgaq5p8"
+ then "16yn7y9xdc5jd50cq7bmsm320gv23pp71lr8hg2nmynzc8ibyda8"
else "0gd49lns2bpzbkwax5jf9x1xmg1j8ij997kcxr2596cwiswnw4di";
};
@@ -36,7 +40,9 @@ stdenv.mkDerivation rec {
skia libGL
];
- patches = lib.optionals unfree [
+ patches = if !unfree then [
+ ./allegro-glibc-2.30.patch
+ ] else [
(fetchpatch {
url = "https://github.com/lfont/aseprite/commit/f1ebc47012d3fed52306ed5922787b4b98cc0a7b.patch";
sha256 = "03xg7x6b9iv7z18vzlqxhcfphmx4v3qhs9f5rgf38ppyklca5jyw";
diff --git a/nixpkgs/pkgs/applications/editors/aseprite/skia.nix b/nixpkgs/pkgs/applications/editors/aseprite/skia.nix
index 8bf2adf484e..c89ebd4ad0c 100644
--- a/nixpkgs/pkgs/applications/editors/aseprite/skia.nix
+++ b/nixpkgs/pkgs/applications/editors/aseprite/skia.nix
@@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, fetchgit, python2, gn, ninja
-, fontconfig, expat, icu58, libjpeg, libpng, libwebp, zlib
+, fontconfig, expat, icu58, libglvnd, libjpeg, libpng, libwebp, zlib
, mesa, libX11
}:
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ python2 gn ninja ];
buildInputs = [
- fontconfig expat icu58 libjpeg libpng libwebp zlib
+ fontconfig expat icu58 libglvnd libjpeg libpng libwebp zlib
mesa libX11
];