about summary refs log tree commit diff
path: root/pkgs/games/itch-setup/default.nix
blob: 55d488bcaac06eb468cd9ca561b8394b1851b4f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, writeShellScriptBin, steam-run, fetchurl }:
let

  pname = "itch-setup";
  version = "1.26.0";

  src = fetchurl {
    url = "https://broth.itch.ovh/itch-setup/linux-amd64/${version}/unpacked/default";
    hash = "sha256-bcJKqhgZK42Irx12BIvbTDMb/DHEOEXljetlDokF7x8=";
    executable = true;
  };

in
(writeShellScriptBin pname ''exec ${steam-run}/bin/steam-run ${src} "$@"'') // {

  passthru = { inherit pname version src; };
  meta = with lib; {
    description = "An installer for the itch.io desktop app";
    homepage = "https://github.com/itchio/itch-setup";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pasqui23 ];
  };
}