git.iko.soy/typeable/nixpkgs
on master help sign in
electron: 0.36.2 -> 1.2.2
commit331cbe78489585bde4727145958dc3f7e238b970 authorErik Ouchterlony <erik.ouchterlony@bredband.net> dateWed 8 Jun 2016, 20:31 (10 years ago) parent964665e
1 file changed+9−6
pkgs/development/tools/electron/default.nix+9−6
pkgs/development/tools/electron/default.nix+9−6
@@ -1,16 +1,16 @@
1−{ stdenv, lib, callPackage, fetchurl, unzip, atomEnv }:
1+{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv }:
22
33stdenv.mkDerivation rec {
44 name = "electron-${version}";
5− version = "0.36.2";
5+ version = "1.2.2";
66
77 src = fetchurl {
8− url = "https://github.com/atom/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
9− sha256 = "01d78j8dfrdygm1r141681b3bfz1f1xqg9vddz7j52z1mlfv9f1d";
8+ url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
9+ sha256 = "0jqzs1297f6w7s4j9pd7wyyqbidb0c61yjz47raafslg6nljgp1c";
1010 name = "${name}.zip";
1111 };
1212
13− buildInputs = [ unzip ];
13+ buildInputs = [ unzip makeWrapper ];
1414
1515 buildCommand = ''
1616 mkdir -p $out/lib/electron $out/bin
@@ -23,11 +23,14 @@ stdenv.mkDerivation rec {
2323 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
2424 --set-rpath "${atomEnv.libPath}:$out/lib/electron" \
2525 $out/lib/electron/electron
26+
27+ wrapProgram $out/lib/electron/electron \
28+ --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1
2629 '';
2730
2831 meta = with stdenv.lib; {
2932 description = "Cross platform desktop application shell";
30− homepage = https://github.com/atom/electron;
33+ homepage = https://github.com/electron/electron;
3134 license = licenses.mit;
3235 maintainers = [ maintainers.travisbhartwell ];
3336 platforms = [ "x86_64-linux" ];