9 , godot-export-templates
27 stdenv.mkDerivation rec {
31 src = fetchFromGitHub {
32 owner = "git-learning-game";
35 sha256 = "sha256-XqxliMVU55D5JSt7Yo5btvZnnTlagSukyhXv6Akgklo=";
68 desktopName = "oh-my-git";
69 comment = "An interactive Git learning game!";
70 genericName = "An interactive Git learning game!";
71 categories = [ "Game" ];
75 # patch shebangs so that e.g. the fake-editor script works:
76 # error: /usr/bin/env 'perl': No such file or directory
77 # error: There was a problem with the editor
85 # Cannot create file '/homeless-shelter/.config/godot/projects/...'
88 # Link the export-templates to the expected location. The --export commands
89 # expects the template-file at .../templates/3.2.3.stable/linux_x11_64_release
90 # with 3.2.3 being the version of godot.
91 mkdir -p $HOME/.local/share/godot
92 ln -s ${godot-export-templates}/share/godot/templates $HOME/.local/share/godot
94 mkdir -p $out/share/oh-my-git
95 godot-headless --export "Linux" $out/share/oh-my-git/oh-my-git
104 ln -s $out/share/oh-my-git/oh-my-git $out/bin
107 interpreter=$(cat $NIX_CC/nix-support/dynamic-linker)
109 --set-interpreter $interpreter \
110 --set-rpath ${lib.makeLibraryPath buildInputs} \
111 $out/share/oh-my-git/oh-my-git
113 mkdir -p $out/share/pixmaps
114 cp images/oh-my-git.png $out/share/pixmaps/oh-my-git.png
120 homepage = "https://ohmygit.org/";
121 description = "An interactive Git learning game";
122 license = with licenses; [ blueOak100 ];
123 platforms = [ "x86_64-linux" ];
124 maintainers = with maintainers; [ jojosch ];