-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes nix build issue and updates nixpkgs (#144)
* Fixes #142 maintaining nix support and updating nixpkgs * removed unneeded dependencies and added more emphasis on tagging maintainers * Update README.md - Add new line --------- Co-authored-by: beh-10257 <[email protected]> Co-authored-by: R1kaB3rN <[email protected]>
- Loading branch information
1 parent
f7164c3
commit 15decf6
Showing
6 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ env, package, symlinkJoin }: | ||
symlinkJoin { | ||
name = "umu-combine"; | ||
name = "umu-run-bwrap"; | ||
paths = [ | ||
env | ||
package | ||
]; | ||
postBuild = '' | ||
rm $out/bin/umu-run | ||
rm $out/bin/umu | ||
''; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
{ | ||
description = "umu universal game launcher"; | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
}; | ||
outputs = { self, nixpkgs }: | ||
let | ||
umu-package = nixpkgs.legacyPackages.x86_64-linux.callPackage ./umu-launcher.nix { umu-launcher=( builtins.toPath "${self}/../../"); }; | ||
umu-run = nixpkgs.legacyPackages.x86_64-linux.callPackage ./umu-run.nix { package=umu-package; }; | ||
umu-launcher-src=builtins.toPath "${self}/../../"; | ||
nixpk=nixpkgs.legacyPackages.x86_64-linux; | ||
in | ||
let | ||
pyth = nixpk.pkgs.python3; | ||
in | ||
let | ||
umu-package = nixpk.callPackage ./umu-launcher.nix { umu-launcher=umu-launcher-src; pyth1=pyth; }; | ||
umu-run = nixpk.callPackage ./umu-run.nix { package=umu-package; }; | ||
in{ | ||
packages.x86_64-linux.umu = nixpkgs.legacyPackages.x86_64-linux.callPackage ./combine.nix { env=umu-run; package=umu-package; }; | ||
packages.x86_64-linux.umu = nixpk.callPackage ./combine.nix { env=umu-run; package=umu-package; }; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
{stdenv , umu-launcher, pkgs, ...}: | ||
stdenv.mkDerivation { | ||
pname = "umu-launcher"; | ||
{pyth1 ,python3Packages , umu-launcher, pkgs, ...}: | ||
python3Packages.buildPythonPackage { | ||
name = "umu-launcher"; | ||
version = "0.1"; | ||
src = umu-launcher; | ||
pyproject = false; | ||
depsBuildBuild = [ | ||
pkgs.meson | ||
pkgs.ninja | ||
pkgs.scdoc | ||
pkgs.git | ||
pkgs.python3Packages.installer | ||
pkgs.hatch | ||
pkgs.python3Packages.build | ||
]; | ||
propagatedBuildInputs = [ | ||
pkgs.python3 | ||
pyth1 | ||
pkgs.python3Packages.xlib | ||
]; | ||
makeFlags = [ "PYTHON_INTERPRETER=${pyth1}/bin/python" "SHELL_INTERPRETER=/run/current-system/sw/bin/bash" "DESTDIR=${placeholder "out"}" ]; | ||
dontUseMesonConfigure = true; | ||
dontUseNinjaBuild = true; | ||
dontUseNinjaInstall = true; | ||
dontUseNinjaCheck = true; | ||
configureScript = "./configure.sh"; | ||
configureFlags = [ "--prefix=${placeholder "out"}" ]; | ||
postInstall='' | ||
mv -fv $out${pyth1}/* $out | ||
mv -fv $out$out/* $out | ||
rm -vrf $out/nix | ||
mv $out/bin/umu-run $out/bin/umu | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
{ package, lib,stdenv, buildFHSEnv, writeShellScript, ...}: | ||
let | ||
ldPath = lib.optionals stdenv.is64bit [ "/lib64" ] ++ [ "/lib32" ]; | ||
exportLDPath = '' | ||
export LD_LIBRARY_PATH=${lib.concatStringsSep ":" ldPath}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH | ||
''; | ||
in | ||
{ package, buildFHSEnv, writeShellScript, ...}: | ||
buildFHSEnv { | ||
name = "umu"; | ||
runScript = writeShellScript "umu-env" '' | ||
${exportLDPath} | ||
${package}/bin/umu-run "$@" | ||
name = "umu-run"; | ||
runScript = writeShellScript "umu-run-shell" '' | ||
${package}/bin/umu "$@" | ||
''; | ||
} |