diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2018-10-24 11:30:28 +0200 |
---|---|---|
committer | Patrick Hilhorst <git@hilhorst.be> | 2018-10-24 11:30:28 +0200 |
commit | 26441bc650762a5d1a1597f65206d3b3dbf9ea14 (patch) | |
tree | 938649e5dbff1d85b3da794b9d4c620b4a314829 /pkgs/applications/editors/atom | |
parent | 782c820ad93af54ede7adb110a6279d1bf1b7473 (diff) |
atom, atom-beta: move versions to top of file
Diffstat (limited to 'pkgs/applications/editors/atom')
-rw-r--r-- | pkgs/applications/editors/atom/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/applications/editors/atom/default.nix b/pkgs/applications/editors/atom/default.nix index 6cfba39ed4b3..2ac80007fdd1 100644 --- a/pkgs/applications/editors/atom/default.nix +++ b/pkgs/applications/editors/atom/default.nix @@ -1,6 +1,19 @@ { stdenv, pkgs, fetchurl, makeWrapper, wrapGAppsHook, gvfs, gtk3, atomEnv }: let + versions = { + atom = { + version = "1.31.2"; + sha256 = "1szx9p2nz1qzjpig0l8h4hj5mqwpjvkcynn8crh21drply4bpfr0"; + }; + + atom-beta = { + version = "1.32.0"; + beta = 0; + sha256 = "12k5cn70a0diyaqbmq6s6l2sbi9i3d9p7i38qnm97lnw0y1kh0jm"; + }; + }; + common = pname: {version, sha256, beta ? null}: let fullVersion = version + stdenv.lib.optionalString (beta != null) "-beta${toString beta}"; name = "${pname}-${fullVersion}"; @@ -71,15 +84,4 @@ let platforms = platforms.x86_64; }; }; -in stdenv.lib.mapAttrs common { - atom = { - version = "1.31.2"; - sha256 = "1szx9p2nz1qzjpig0l8h4hj5mqwpjvkcynn8crh21drply4bpfr0"; - }; - - atom-beta = { - version = "1.32.0"; - beta = 0; - sha256 = "12k5cn70a0diyaqbmq6s6l2sbi9i3d9p7i38qnm97lnw0y1kh0jm"; - }; -} +in stdenv.lib.mapAttrs common versions |