10 , godot3-export-templates
28 stdenv.mkDerivation rec {
32 src = fetchFromGitHub {
33 owner = "git-learning-game";
36 sha256 = "sha256-XqxliMVU55D5JSt7Yo5btvZnnTlagSukyhXv6Akgklo=";
70 desktopName = "oh-my-git";
71 comment = "An interactive Git learning game!";
72 genericName = "An interactive Git learning game!";
73 categories = [ "Game" ];
77 # patch shebangs so that e.g. the fake-editor script works:
78 # error: /usr/bin/env 'perl': No such file or directory
79 # error: There was a problem with the editor
87 # Cannot create file '/homeless-shelter/.config/godot/projects/...'
90 # Link the export-templates to the expected location. The --export commands
91 # expects the template-file at .../templates/3.2.3.stable/linux_x11_64_release
92 # with 3.2.3 being the version of godot.
93 mkdir -p $HOME/.local/share/godot
94 ln -s ${godot3-export-templates}/share/godot/templates $HOME/.local/share/godot
96 mkdir -p $out/share/oh-my-git
97 godot3-headless --export "Linux" $out/share/oh-my-git/oh-my-git
106 ln -s $out/share/oh-my-git/oh-my-git $out/bin
109 interpreter=$(cat $NIX_CC/nix-support/dynamic-linker)
111 --set-interpreter $interpreter \
112 --set-rpath ${lib.makeLibraryPath buildInputs} \
113 $out/share/oh-my-git/oh-my-git
115 mkdir -p $out/share/pixmaps
116 cp images/oh-my-git.png $out/share/pixmaps/oh-my-git.png
121 runtimeDependencies = map lib.getLib [
128 homepage = "https://ohmygit.org/";
129 description = "An interactive Git learning game";
130 mainProgram = "oh-my-git";
131 license = with licenses; [ blueOak100 ];
132 platforms = [ "x86_64-linux" ];
133 maintainers = with maintainers; [ jojosch ];