mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
ccec93c1c7
sed -i 's/ webkitgtk\b/ webkitgtk_4_0/g' pkgs/**.nix sed -i 's/(webkitgtk\b/(webkitgtk_4_0/g' pkgs/**.nix sed -i 's/\.webkitgtk\b/.webkitgtk_4_0/g' pkgs/**.nix webkitgtk is currently pointing to that specific ABI version but the alias is going to start warning
83 lines
1.6 KiB
Nix
83 lines
1.6 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, glibcLocales
|
|
, glib-networking
|
|
, gobject-introspection
|
|
, gtk3
|
|
, libnotify
|
|
, python3Packages
|
|
, steam-run
|
|
, substituteAll
|
|
, unzip
|
|
, webkitgtk_4_0
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "minigalaxy";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sharkwouter";
|
|
repo = "minigalaxy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-CMPBKnNrcjHVpsbBjY97FiygEJNG9jKHR/LoVMfuxG4=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./inject-launcher-steam-run.diff;
|
|
steamrun = lib.getExe steam-run;
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace minigalaxy/installer.py \
|
|
--replace-fail '"unzip"' "\"${lib.getExe unzip}\"" \
|
|
--replace-fail "'unzip'" "\"${lib.getExe unzip}\""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib-networking
|
|
gtk3
|
|
libnotify
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
glibcLocales
|
|
pytestCheckHook
|
|
simplejson
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
pythonPath = [
|
|
python3Packages.pygobject3
|
|
python3Packages.requests
|
|
webkitgtk_4_0
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sharkwouter.github.io/minigalaxy/";
|
|
changelog = "https://github.com/sharkwouter/minigalaxy/blob/${version}/CHANGELOG.md";
|
|
downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
|
|
description = "Simple GOG client for Linux";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|