git.iko.soy/typeable/nixpkgs
on master help sign in
nix-tour: 0.0.1 initial release for offline use
commitfe04ea79ddc33a612181050c1fb69c6f928b2f6c authorJoachim Schiele <js@lastlog.de> dateFri 17 Jun 2016, 12:06 (10 years ago) parent7ae1e9b
2 files changed+39
pkgs/applications/misc/nix-tour/default.nix+37 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/nix-tour/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchgit, electron } :
2+
3+stdenv.mkDerivation rec {
4+ name = "nix-tour";
5+
6+ buildInputs = [ electron ];
7+
8+ version = "v0.0.1";
9+
10+ src = fetchgit {
11+ url = "https://github.com/nixcloud/tour_of_nix";
12+ rev = "refs/tags/${version}";
13+ sha256 = "09b1vxli4zv1nhqnj6c0vrrl51gaira94i8l7ww96fixqxjgdwvb";
14+ };
15+
16+ phases = [ "unpackPhase" "installPhase" ];
17+
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ mkdir -p $out/share
21+ cp -R * $out/share
22+ chmod 0755 $out/share/ -R
23+ echo "#!${stdenv.shell}" > $out/bin/nix-tour
24+ echo "cd $out/share/" >> $out/bin/nix-tour
25+ echo "${electron}/bin/electron $out/share/electron-main.js" >> $out/bin/nix-tour
26+ chmod 0755 $out/bin/nix-tour
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "'the tour of nix' from nixcloud.io/tour as offline version";
31+ homepage = "https://nixcloud.io/tour";
32+ license = licenses.gpl2;
33+ platforms = platforms.linux;
34+ maintainers = with maintainers; [ qknight ];
35+ };
36+
37+}
pkgs/top-level/all-packages.nix+2
@@ -10018,6 +10018,8 @@ in
1001810018
1001910019 nix-binary-cache = callPackage ../servers/http/nix-binary-cache {};
1002010020
10021+ nix-tour = callPackage ../applications/misc/nix-tour {};
10022+
1002110023 nsd = callPackage ../servers/dns/nsd (config.nsd or {});
1002210024
1002310025 nsq = callPackage ../servers/nsq { };