summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2018-08-01 11:30:10 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-01 11:30:10 +0200
commite616563433f67d9d50f24a3c644b745c3ad03451 (patch)
treed5c4e8b7b1f2a5a08ca51a2eed5494f9372b96b8
parent26210f556af7e598eb10f14ebe4445a724e85c56 (diff)
downloadnixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar.gz
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar.bz2
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar.lz
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar.xz
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.tar.zst
nixlib-e616563433f67d9d50f24a3c644b745c3ad03451.zip
atom, atom-beta: 1.28.2 -> 1.29.0, refactored build script (#44297)
atom-beta: 1.29.0-beta1 -> 1.30.0-beta1

The beta version jump seems like an irregular update, but 1.30.0-beta0
was retired rougly 3 hours after release due to an macOS error:

> Fixed an error about a missing string_decoder module when the Git pane
> is displayed on macOS.

This shouldn't affect the Linux x86_64 version, but latest versions are
always nice.

Also refactored the build script, it now takes the version number as
an extra (optional) argument and creates the version number from that.

Also removed `rec` from the main set because it was no longer needed.
-rw-r--r--pkgs/applications/editors/atom/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/applications/editors/atom/default.nix b/pkgs/applications/editors/atom/default.nix
index 4078efa6783b..83f0f1e82220 100644
--- a/pkgs/applications/editors/atom/default.nix
+++ b/pkgs/applications/editors/atom/default.nix
@@ -1,12 +1,15 @@
 { stdenv, pkgs, fetchurl, makeWrapper, gvfs, atomEnv}:
 
 let
-  common = pname: {version, sha256}: stdenv.mkDerivation rec {
-    name = "${pname}-${version}";
-    inherit version;
+  common = pname: {version, sha256, beta ? null}:
+      let fullVersion = version + stdenv.lib.optionalString (beta != null) "-beta${toString beta}";
+      name = "${pname}-${fullVersion}";
+  in stdenv.mkDerivation {
+    inherit name;
+    version = fullVersion;
 
     src = fetchurl {
-      url = "https://github.com/atom/atom/releases/download/v${version}/atom-amd64.deb";
+      url = "https://github.com/atom/atom/releases/download/v${fullVersion}/atom-amd64.deb";
       name = "${name}.deb";
       inherit sha256;
     };
@@ -61,12 +64,13 @@ let
   };
 in stdenv.lib.mapAttrs common {
   atom = {
-    version = "1.28.2";
-    sha256 = "07lz4lj07dbfz952l3q9vplvg41pxl1cx89gzy8bzzr3ay7kn6za";
+    version = "1.29.0";
+    sha256 = "0f0qpn8aw2qlqk8ah71xvk4vcmwsnsf2f3g4hz0rvaqnhb9ri9fz";
   };
 
   atom-beta = {
-    version = "1.29.0-beta1";
-    sha256 = "121y716pnq4vpjrymr505prskvi5a2lnn8hw79q8b4hf7yz0j6rb";
+    version = "1.30.0";
+    beta = 1;
+    sha256 = "0ygqj81xlwhzmmci0d0rd2q7xfskxd1k7h6db3zvvjdxjcnyqp1z";
   };
 }