10 stdenv.mkDerivation rec {
12 version = "unstable-2022-01-03";
14 src = fetchFromGitHub {
17 rev = "6a6784983e6dc121574b97eb9b1d03592c8cb9a7";
18 sha256 = "sha256-BhQz59wkwwY0ShXzqUD6MQl4NE/jUik5RbLzseEc5Bc=";
21 nativeBuildInputs = [ makeWrapper copyDesktopItems ];
22 buildInputs = [ electron ];
25 install -d $out/bin $out/share/nix-tour
26 cp -R * $out/share/nix-tour
27 makeWrapper ${electron}/bin/electron $out/bin/nix-tour \
28 --add-flags $out/share/nix-tour/electron-main.js
34 desktopName = "Tour of Nix";
35 genericName = "Tour of Nix";
37 "Interactive programming guide dedicated to the nix programming language";
38 categories = [ "Development" "Documentation" ];
44 description = "'the tour of nix' from nixcloud.io/tour as offline version";
45 homepage = "https://nixcloud.io/tour";
46 license = licenses.gpl2;
47 maintainers = with maintainers; [ qknight yuu ];
48 mainProgram = "nix-tour";