Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / minigalaxy / default.nix
blobad694c01cdcba53a107a5e83b4f8740790fbad87
1 { lib
2 , fetchFromGitHub
3 , docutils
4 , gettext
5 , glibcLocales
6 , glib-networking
7 , gobject-introspection
8 , gtk3
9 , python3
10 , python3Packages
11 , steam-run
12 , unzip
13 , webkitgtk
14 , wrapGAppsHook
17 python3Packages.buildPythonApplication rec {
18   pname = "minigalaxy";
19   version = "1.2.2";
21   src = fetchFromGitHub {
22     owner = "sharkwouter";
23     repo = pname;
24     rev = "refs/tags/${version}";
25     sha256 = "sha256-bpNtdMYBl2dJ4PQsxkhm/Y+3A0dD/Y2XC0VaUYyRhvM=";
26   };
28   checkPhase = ''
29     runHook preCheck
30     env HOME=$PWD LC_ALL=en_US.UTF-8 pytest
31     runHook postCheck
32   '';
34   nativeBuildInputs = [
35     gettext
36     wrapGAppsHook
37     gobject-introspection
38   ];
40   buildInputs = [
41     glib-networking
42     gtk3
43   ];
45   nativeCheckInputs = with python3Packages; [
46     glibcLocales
47     pytest
48     tox
49   ];
51   pythonPath = [
52     docutils
53     python3.pkgs.pygobject3
54     python3.pkgs.requests
55     python3.pkgs.setuptools
56     python3.pkgs.simplejson
57     steam-run
58     unzip
59     webkitgtk
60   ];
62   # Run Linux games using the Steam Runtime by using steam-run in the wrapper
63   # FIXME: not working with makeBinaryWrapper
64   postFixup = ''
65     sed -e 's#exec -a "$0"#exec -a "$0" ${steam-run}/bin/steam-run#' -i $out/bin/minigalaxy
66   '';
68   meta = with lib; {
69     homepage = "https://sharkwouter.github.io/minigalaxy/";
70     changelog = "https://github.com/sharkwouter/minigalaxy/blob/${version}/CHANGELOG.md";
71     downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
72     description = "A simple GOG client for Linux";
73     license = licenses.gpl3;
74     maintainers = with maintainers; [ ];
75     platforms = platforms.linux;
76   };