git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'nix-tour' of git://github.com/qknight/nixpkgs
commit8f28dad52ce7da0dd4d2342dfb740a5b5e1f4d9b authorShea Levy <shea@shealevy.com> dateTue 21 Jun 2016, 19:45 (10 years ago) parent61ba956fe04ea7
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
@@ -10048,6 +10048,8 @@ in
1004810048
1004910049 nix-binary-cache = callPackage ../servers/http/nix-binary-cache {};
1005010050
10051+ nix-tour = callPackage ../applications/misc/nix-tour {};
10052+
1005110053 nsd = callPackage ../servers/dns/nsd (config.nsd or {});
1005210054
1005310055 nsq = callPackage ../servers/nsq { };