git.iko.soy/typeable/nixpkgs
on master help sign in
Add Thrust 0.7.6
commit97160a8644dddc2d08a2f40ee1bed7ccd53f9cc0 authorOzan Sener <ozan@ozansener.com> dateMon 19 Jan 2015, 02:14 (12 years ago) parente3ed4b5
3 files changed+52
lib/maintainers.nix+1 pkgs/development/tools/thrust/default.nix+47 pkgs/top-level/all-packages.nix+4
lib/maintainers.nix+1
@@ -151,6 +151,7 @@
151151 offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
152152 olcai = "Erik Timan <dev@timan.info>";
153153 orbitz = "Malcolm Matalka <mmatalka@gmail.com>";
154+ osener = "Ozan Sener <ozan@ozansener.com>";
154155 page = "Carles Pagès <page@cubata.homelinux.net>";
155156 paholg = "Paho Lurie-Gregg <paho@paholg.com>";
156157 pakhfn = "Fedor Pakhomov <pakhfn@gmail.com>";
pkgs/development/tools/thrust/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchurl, buildEnv, makeWrapper, glib, alsaLib , dbus, gtk, atk
2+, pango, freetype, fontconfig, gdk_pixbuf , cairo, cups, expat, nspr, gconf, nss
3+, xlibs, libcap, unzip
4+}:
5+
6+let
7+ thrustEnv = buildEnv {
8+ name = "env-thrust";
9+ paths = [
10+ stdenv.cc.gcc glib dbus gtk atk pango freetype fontconfig gdk_pixbuf
11+ cairo cups expat alsaLib nspr gconf nss xlibs.libXrender xlibs.libX11
12+ xlibs.libXext xlibs.libXdamage xlibs.libXtst xlibs.libXcomposite
13+ xlibs.libXi xlibs.libXfixes xlibs.libXrandr xlibs.libXcursor libcap
14+ ];
15+ };
16+in stdenv.mkDerivation rec {
17+ name = "thrust-${version}";
18+ version = "0.7.6";
19+
20+ src = fetchurl {
21+ url = "https://github.com/breach/thrust/releases/download/v${version}/thrust-v${version}-linux-x64.zip";
22+ sha256 = "07rrnlj0gk500pvar4b1wdqm05p4n9yjwn911x93bd2qwc8r5ymc";
23+ };
24+
25+ buildInputs = [ thrustEnv makeWrapper unzip ];
26+
27+ phases = [ "installPhase" "fixupPhase" ];
28+
29+ installPhase = ''
30+ mkdir -p $out/bin
31+ mkdir -p $out/libexec/thrust
32+ unzip -d $out/libexec/thrust/ $src
33+ patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
34+ $out/libexec/thrust/thrust_shell
35+ wrapProgram $out/libexec/thrust/thrust_shell \
36+ --prefix "LD_LIBRARY_PATH" : "${thrustEnv}/lib:${thrustEnv}/lib64"
37+ ln -s $out/libexec/thrust/thrust_shell $out/bin
38+ '';
39+
40+ meta = with stdenv.lib; {
41+ description = "Chromium-based cross-platform / cross-language application framework";
42+ homepage = https://github.com/breach/thrust;
43+ license = [ licenses.mit ];
44+ maintainers = [ maintainers.osener ];
45+ platforms = [ "x86_64-linux" ];
46+ };
47+}
pkgs/top-level/all-packages.nix+4
@@ -4479,6 +4479,10 @@ let
44794479 teyjus = callPackage ../development/compilers/teyjus {
44804480 omake = omake_rc1;
44814481 };
4482+
4483+ thrust = callPackage ../development/tools/thrust {
4484+ gconf = pkgs.gnome.GConf;
4485+ };
44824486
44834487 tinycc = callPackage ../development/compilers/tinycc { };
44844488