4 , buildPythonApplication
12 buildPythonApplication rec {
17 src = fetchFromGitHub {
18 owner = "Heroic-Games-Launcher";
19 repo = "heroic-gogdl";
20 rev = "89d15f1593cc26f15a5f8f409bb623764c095d37";
21 hash = "sha256-EECpXGVhcwihKB8fLObVvYzFD8uh7CxYKtFiGc0Jqbk=";
24 disabled = pythonOlder "3.8";
26 propagatedBuildInputs = [
31 pythonImportsCheck = [ "gogdl" ];
34 description = "GOG Downloading module for Heroic Games Launcher";
35 homepage = "https://github.com/Heroic-Games-Launcher/heroic-gogdl";
36 license = with licenses; [ gpl3 ];
37 maintainers = with maintainers; [ aidalgol ];
40 # Upstream no longer create git tags when bumping the version, so we have to
41 # extract it from the source code on the main branch.
42 passthru.updateScript = writeScript "gogdl-update-script" ''
43 #!/usr/bin/env nix-shell
44 #!nix-shell -i bash -p curl gnused jq common-updater-scripts
47 owner=Heroic-Games-Launcher
49 path='gogdl/__init__.py'
52 curl --cacert "${cacert}/etc/ssl/certs/ca-bundle.crt" \
53 https://raw.githubusercontent.com/$owner/$repo/main/$path |
54 sed -n 's/^\s*version\s*=\s*"\([0-9]\.[0-9]\.[0-9]\)"\s*$/\1/p')
56 commit=$(curl --cacert "${cacert}/etc/ssl/certs/ca-bundle.crt" \
57 https://api.github.com/repos/$owner/$repo/commits?path=$path |
60 update-source-version \
63 --file=./pkgs/games/gogdl/default.nix \