git.iko.soy/typeable/nixpkgs
on master help sign in
Development tools: added atom-shell
commit5d56bda1fba06293d9337117295cc03406af1aa9 authorDaniel Austin <dan@fluffynukeit.com> dateThu 13 Nov 2014, 06:39 (12 years ago) parent557a3c9
3 files changed+55
lib/maintainers.nix+1 pkgs/development/tools/atom-shell/default.nix+49 pkgs/top-level/all-packages.nix+5
lib/maintainers.nix+1
@@ -61,6 +61,7 @@
6161 exlevan = "Alexey Levan <exlevan@gmail.com>";
6262 falsifian = "James Cook <james.cook@utoronto.ca>";
6363 flosse = "Markus Kohlhase <mail@markus-kohlhase.de>";
64+ fluffynukeit = "Daniel Austin <dan@fluffynukeit.com>";
6465 fpletz = "Franz Pletz <fpletz@fnordicwalking.de>";
6566 ftrvxmtrx = "Siarhei Zirukin <ftrvxmtrx@gmail.com>";
6667 funfunctor = "Edward O'Callaghan <eocallaghan@alterapraxis.com>";
pkgs/development/tools/atom-shell/default.nixnew file+49
@@ -0,0 +1,49 @@
1+{ stdenv, fetchurl, buildEnv, makeDesktopItem, makeWrapper, zlib, glib, alsaLib
2+, dbus, gtk, atk, pango, freetype, fontconfig, libgnome_keyring3, gdk_pixbuf
3+, cairo, cups, expat, libgpgerror, nspr, gconf, nss, xlibs, libcap, unzip
4+}:
5+let
6+ atomEnv = buildEnv {
7+ name = "env-atom";
8+ paths = [
9+ stdenv.gcc.gcc zlib glib dbus gtk atk pango freetype libgnome_keyring3
10+ fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gconf nss
11+ xlibs.libXrender xlibs.libX11 xlibs.libXext xlibs.libXdamage xlibs.libXtst
12+ xlibs.libXcomposite xlibs.libXi xlibs.libXfixes xlibs.libXrandr
13+ xlibs.libXcursor libcap
14+ ];
15+ };
16+in stdenv.mkDerivation rec {
17+ name = "atom-shell-${version}";
18+ version = "0.19.1";
19+
20+ src = fetchurl {
21+ url = "https://github.com/atom/atom-shell/releases/download/v0.19.1/atom-shell-v0.19.1-linux-x64.zip";
22+ sha256 = "10q1slwv2lkiqqxpv0m5a1k0gj2yp8bi9a7ilb05zz1wg7j3yw4y";
23+ name = "${name}.zip";
24+ };
25+
26+ buildInputs = [ atomEnv makeWrapper unzip ];
27+
28+ phases = [ "installPhase" "fixupPhase" ];
29+
30+ unpackCmd = "unzip";
31+
32+ installPhase = ''
33+ mkdir -p $out/bin
34+ unzip -d $out/bin $src
35+ patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
36+ $out/bin/atom
37+ mv $out/bin/atom $out/bin/atom-shell
38+ wrapProgram $out/bin/atom-shell \
39+ --prefix "LD_LIBRARY_PATH" : "${atomEnv}/lib:${atomEnv}/lib64"
40+ '';
41+
42+ meta = with stdenv.lib; {
43+ description = "Cross platform desktop application shell";
44+ homepage = https://github.com/atom/atom-shell;
45+ license = [ licenses.mit ];
46+ maintainers = [ maintainers.fluffynukeit ];
47+ platforms = [ "x86_64-linux" ];
48+ };
49+}
pkgs/top-level/all-packages.nix+5
@@ -4306,6 +4306,11 @@ let
43064306
43074307 astyle = callPackage ../development/tools/misc/astyle { };
43084308
4309+ atom-shell = callPackage ../development/tools/atom-shell {
4310+ gconf = pkgs.gnome.GConf;
4311+ };
4312+
4313+
43094314 autobuild = callPackage ../development/tools/misc/autobuild { };
43104315
43114316 autoconf = callPackage ../development/tools/misc/autoconf { };