Skip to content

Commit f552caf

Browse files
committed
umu-launcher[-unwrapped]: init at 1.1.4
1 parent 6e0876c commit f552caf

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Makefile.in b/Makefile.in
2+
index b82053d..3e4379e 100644
3+
--- a/Makefile.in
4+
+++ b/Makefile.in
5+
@@ -90,7 +90,7 @@ umu-dist: $(OBJDIR)/.build-umu-dist
6+
umu-dist-install: umu-dist
7+
$(info :: Installing umu )
8+
install -d $(DESTDIR)$(PYTHONDIR)/$(INSTALLDIR)
9+
- $(PYTHON_INTERPRETER) -m installer --destdir=$(DESTDIR) $(OBJDIR)/*.whl
10+
+ $(PYTHON_INTERPRETER) -m installer --prefix=$(PREFIX) $(OBJDIR)/*.whl
11+
12+
ifeq ($(FLATPAK), xtrue)
13+
umu-install: version-install umu-dist-install
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Makefile.in b/Makefile.in
2+
index b82053d..37db8c9 100644
3+
--- a/Makefile.in
4+
+++ b/Makefile.in
5+
@@ -50,7 +50,7 @@ fix_shebangs:
6+
umu/umu_version.json: umu/umu_version.json.in
7+
$(info :: Updating $(@) )
8+
cp $(<) $(<).tmp
9+
- sed 's|##UMU_VERSION##|$(shell git describe --always --long --tags)|g' -i $(<).tmp
10+
+ sed 's|##UMU_VERSION##|@version@|g' -i $(<).tmp
11+
mv $(<).tmp $(@)
12+
13+
.PHONY: version
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
python3Packages,
3+
fetchFromGitHub,
4+
lib,
5+
bash,
6+
hatch,
7+
scdoc,
8+
replaceVars,
9+
}:
10+
python3Packages.buildPythonPackage rec {
11+
pname = "umu-launcher-unwrapped";
12+
version = "1.1.4";
13+
14+
src = fetchFromGitHub {
15+
owner = "Open-Wine-Components";
16+
repo = "umu-launcher";
17+
tag = version;
18+
hash = "sha256-TOsVK6o2V8D7CLzVOkLs8AClrZmlVQTfeii32ZIQCu4=";
19+
};
20+
21+
patches = [
22+
# This should fail, and be removed for releases after 1.1.4,
23+
# see https://github.com/Open-Wine-Components/umu-launcher/pull/289
24+
(replaceVars ./no-umu-version-json.patch { inherit version; })
25+
# Patch the python installer call to use --prefix instead of --destdir
26+
# Ideally, a change should be upstreamed, that adds both arguments
27+
# if their respective variables are set.
28+
./makefile-installer-prefix.patch
29+
];
30+
31+
nativeBuildInputs = [
32+
python3Packages.build
33+
hatch
34+
scdoc
35+
python3Packages.installer
36+
];
37+
38+
pythonPath = [
39+
python3Packages.filelock
40+
python3Packages.xlib
41+
];
42+
43+
pyproject = false;
44+
configureScript = "./configure.sh";
45+
46+
makeFlags = [
47+
"PYTHONDIR=$(PREFIX)/${python3Packages.python.sitePackages}"
48+
"PYTHON_INTERPRETER=${lib.getExe python3Packages.python}"
49+
# Override RELEASEDIR to avoid running `git describe`
50+
"RELEASEDIR=${pname}-${version}"
51+
"SHELL_INTERPRETER=${lib.getExe bash}"
52+
];
53+
54+
meta = {
55+
description = "Unified launcher for Windows games on Linux using the Steam Linux Runtime and Tools";
56+
changelog = "https://github.com/Open-Wine-Components/umu-launcher/releases/tag/${version}";
57+
homepage = "https://github.com/Open-Wine-Components/umu-launcher";
58+
license = lib.licenses.gpl3;
59+
mainProgram = "umu-run";
60+
maintainers = with lib.maintainers; [
61+
diniamo
62+
MattSturgeon
63+
fuzen
64+
];
65+
platforms = lib.platforms.linux;
66+
};
67+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
buildFHSEnv,
3+
lib,
4+
umu-launcher-unwrapped,
5+
}:
6+
buildFHSEnv {
7+
pname = "umu-launcher";
8+
inherit (umu-launcher-unwrapped) version meta;
9+
10+
targetPkgs = pkgs: [ pkgs.umu-launcher-unwrapped ];
11+
12+
executableName = umu-launcher-unwrapped.meta.mainProgram;
13+
runScript = lib.getExe umu-launcher-unwrapped;
14+
15+
extraInstallCommands = ''
16+
ln -s ${umu-launcher-unwrapped}/lib $out/lib
17+
ln -s ${umu-launcher-unwrapped}/share $out/share
18+
'';
19+
}

0 commit comments

Comments
 (0)