summary refs log tree commit diff
path: root/pkgs/applications/editors/aseprite/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/aseprite/default.nix')
-rw-r--r--pkgs/applications/editors/aseprite/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/editors/aseprite/default.nix b/pkgs/applications/editors/aseprite/default.nix
index 9a0d1bb5e72c..39be7f534060 100644
--- a/pkgs/applications/editors/aseprite/default.nix
+++ b/pkgs/applications/editors/aseprite/default.nix
@@ -11,7 +11,7 @@
 
 stdenv.mkDerivation rec {
   name = "aseprite-${version}";
-  version = if unfree then "1.2-beta12" else "1.1.7";
+  version = if unfree then "1.2.2" else "1.1.7";
 
   src = fetchFromGitHub {
     owner = "aseprite";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
     rev = "v${version}";
     fetchSubmodules = true;
     sha256 = if unfree
-      then "1zgsr03d4vwdj2qyiwfwfqsbqngp85n13i3xwbkfkbja036c5yhc"
+      then "1ldi7zikl1g6rq3g9lkypx5wqzza5j0054j1r8bh7lyvb0szicig"
       else "0gd49lns2bpzbkwax5jf9x1xmg1j8ij997kcxr2596cwiswnw4di";
   };
 
@@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
     libX11 libXext libXcursor libXxf86vm
   ] ++ lib.optionals unfree [ cmark ];
 
+  postPatch = ''
+    sed -i src/config.h -e "s-\\(#define VERSION\\) .*-\\1 \"$version\"-"
+  '';
+
   cmakeFlags = [
     "-DENABLE_UPDATER=OFF"
     "-DUSE_SHARED_CURL=ON"