diff options
-rw-r--r-- | default.nix | 2 | ||||
-rw-r--r-- | pkgs/kaiosrt/default.nix | 40 | ||||
-rw-r--r-- | pkgs/kaiosrt/devenv.nix | 17 |
3 files changed, 59 insertions, 0 deletions
diff --git a/default.nix b/default.nix index bde51e1..6f83bba 100644 --- a/default.nix +++ b/default.nix @@ -23,6 +23,8 @@ agate = pkgs.callPackage ./pkgs/agate { }; #hyperion-rpi3 = pkgs.callPackage ./pkgs/hyperion-rpi3 { }; gemget = pkgs.callPackage ./pkgs/gemget { }; + kaiosrt = pkgs.callPackage ./pkgs/kaiosrt { }; + kaios-devenv = pkgs.callPackage ./pkgs/kaiosrt/devenv.nix { }; st = pkgs.callPackage ./pkgs/larbs/st { }; dwm = pkgs.callPackage ./pkgs/larbs/dwm { }; diff --git a/pkgs/kaiosrt/default.nix b/pkgs/kaiosrt/default.nix new file mode 100644 index 0000000..a235131 --- /dev/null +++ b/pkgs/kaiosrt/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, autoPatchelfHook, +libstdcxx5, libX11, libXrender, libXt, libXext, glib, freetype, fontconfig, +alsaLib, dbus-glib, dbus, cairo, pango, atk, gdk_pixbuf, gnome3, gnome2, gcc49 }: + +stdenv.mkDerivation { + name = "kaiosrt"; + + src = fetchurl { + url = "https://s3.amazonaws.com/kaicloudsimulatordl/developer-portal/simulator/Kaiosrt_ubuntu.tar.bz2"; + sha256 = "1f7q7iq4azini8aa7fi697awwfrgf6lf7qmizd52w41vnvm1dxll"; + }; + + nativeBuildInputs = [ autoPatchelfHook ]; + buildInputs = [ + libX11 + libXrender + libXt + libXext + glib + freetype + fontconfig + alsaLib + dbus-glib + dbus + cairo + pango + atk + gdk_pixbuf + gnome3.gtk + gnome2.gtk + gcc49 + ]; + + buildPhase = ""; + installPhase = '' + tar -xf kaiosrt-v2.5.en-US.linux-x86_64.tar.bz2 + mkdir -p $out + cp -r kaiosrt $out/bin + ''; +} diff --git a/pkgs/kaiosrt/devenv.nix b/pkgs/kaiosrt/devenv.nix new file mode 100644 index 0000000..89ab931 --- /dev/null +++ b/pkgs/kaiosrt/devenv.nix @@ -0,0 +1,17 @@ +{ stdenv, buildEnv, callPackage }: + +let + kaiosrt = callPackage ./default.nix { }; + nixpkgs = import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/916f6583a9f7952230737b7ef29b3e4b05f148f1.tar.gz"; + sha256 = "1vg4kg1aqfxgvwqb8mpkbnml5cxcchw9jck1if2b1kjarsllazbr"; + }) { }; + firefox59 = nixpkgs.firefox-devedition-bin; +in + buildEnv { + name = "kaios-devenv"; + paths = [ + kaiosrt + firefox59 + ]; + } |