Skip to content

Commit

Permalink
nwjs-sdk: init at 0.33.4 (#45320)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk authored and xeji committed Oct 2, 2018
1 parent baacbcd commit 34f2009
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pkgs/development/tools/nwjs/default.nix
Expand Up @@ -5,6 +5,8 @@
, libnotify
, ffmpeg, libxcb, cups
, sqlite, udev
, libuuid
, sdk ? false
}:
let
bits = if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
Expand All @@ -23,20 +25,26 @@ let
ffmpeg libxcb
# chromium runtime deps (dlopen’d)
sqlite udev
libuuid
];

extraOutputsToInstall = [ "lib" "out" ];
};

in stdenv.mkDerivation rec {
name = "nwjs-${version}";
version = "0.32.4";
version = "0.33.4";

src = fetchurl {
src = if sdk then fetchurl {
url = "https://dl.nwjs.io/v${version}/nwjs-sdk-v${version}-linux-${bits}.tar.gz";
sha256 = if bits == "x64" then
"1hi6xispxvyb6krm5j11mv8509dwpw5ikpbkvq135gsk3gm29c9y" else
"00p4clbfinrj5gp2i84a263l3h00z8g7mnx61qwmr0z02kvswz9s";
} else fetchurl {
url = "https://dl.nwjs.io/v${version}/nwjs-v${version}-linux-${bits}.tar.gz";
sha256 = if bits == "x64" then
"0hzyiy6sbbjll1b946y3v7bv6sav3rhy4c48d4vcvamyv9pkfn45" else
"0a3b712abfa0c3e7e808b1d08ea5d53375a71060e7d144fdcb58c4fe88fa2250";
"09zd6gja3l20xx03h2gawpmh9f8nxqjp8qdkds5nz9kbbckhkj52" else
"0nlpdz76k1p1pq4xygfr2an91m0d7p5fjyg2xhiggyy8b7sp4964";
};

phases = [ "unpackPhase" "installPhase" ];
Expand Down
5 changes: 5 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -8600,6 +8600,11 @@ with pkgs;
gconf = pkgs.gnome2.GConf;
};

nwjs-sdk = callPackage ../development/tools/nwjs {
gconf = pkgs.gnome2.GConf;
sdk = true;
};

# only kept for nixui, see https://github.com/matejc/nixui/issues/27
nwjs_0_12 = callPackage ../development/tools/node-webkit/nw12.nix {
gconf = pkgs.gnome2.GConf;
Expand Down

0 comments on commit 34f2009

Please sign in to comment.