summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/sublime
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-03 00:58:11 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-03 13:09:20 -0500
commit143978a477e4891bd94be6d9fcf257f726b403cd (patch)
treeb93f545ca15d5dd7410e7ec13be3df1709b935c6 /pkgs/applications/editors/sublime
parent3216cf6cdf5a9d0e77af10add1a9cd5c0d6106c2 (diff)
treewide: remove platform assertions
linux: readd assertion
Diffstat (limited to 'pkgs/applications/editors/sublime')
-rw-r--r--pkgs/applications/editors/sublime/2/default.nix4
-rw-r--r--pkgs/applications/editors/sublime/3/common.nix3
2 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/editors/sublime/2/default.nix b/pkgs/applications/editors/sublime/2/default.nix
index 9cf5bd97d0a3..78c2d9aaa0c4 100644
--- a/pkgs/applications/editors/sublime/2/default.nix
+++ b/pkgs/applications/editors/sublime/2/default.nix
@@ -2,11 +2,10 @@
let
libPath = stdenv.lib.makeLibraryPath [glib xorg.libX11 gtk2 cairo];
in
-assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
stdenv.mkDerivation rec {
name = "sublimetext-2.0.2";
- src =
+ src =
if stdenv.system == "i686-linux" then
fetchurl {
name = "sublimetext-2.0.2.tar.bz2";
@@ -55,5 +54,6 @@ stdenv.mkDerivation rec {
meta = {
description = "Sophisticated text editor for code, markup and prose";
license = stdenv.lib.licenses.unfree;
+ platforms = [ "x86_64-linux" "i686-linux" ];
};
}
diff --git a/pkgs/applications/editors/sublime/3/common.nix b/pkgs/applications/editors/sublime/3/common.nix
index 7185a82a9601..628993dbf5be 100644
--- a/pkgs/applications/editors/sublime/3/common.nix
+++ b/pkgs/applications/editors/sublime/3/common.nix
@@ -4,7 +4,6 @@
pkexecPath ? "/run/wrappers/bin/pkexec", libredirect,
gksuSupport ? false, gksu, unzip, zip, bash}:
-assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
assert gksuSupport -> gksu != null;
let
@@ -114,6 +113,6 @@ in stdenv.mkDerivation (rec {
homepage = https://www.sublimetext.com/;
maintainers = with maintainers; [ wmertens demin-dmitriy zimbatm ];
license = licenses.unfree;
- platforms = platforms.linux;
+ platforms = [ "x86_64-linux" "i686-linux" ];
};
})