Skip to content

Commit

Permalink
made the flake nicer and updated nixpkgs and make version follows what (
Browse files Browse the repository at this point in the history
#249)

users are actually using

an update after ages

I guess a change at a time is better

making version configurable

hmmmm maybe

maybe the right way to expose version

nice AAAAAAAAAAAAAA

wow debugging

lets go I guess

used the right rev just before a broken nixpkgs

added bwrap

yippie ?? probably

hmmmmmmm trying to break it

cleaning things up

lets do this

Co-authored-by: beh-10257 <beh-10257@users.noreply.github.com>
  • Loading branch information
beh-10257 and beh-10257 authored Oct 22, 2024
1 parent 9c8d8a0 commit 2af98f4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ and in your `configuration.nix`
```nix
{inputs, pkgs, ... }:
{
environment.systemPackages = [ inputs.umu.packages.${pkgs.system}.umu ];
environment.systemPackages = [ (inputs.umu.packages.${pkgs.system}.umu.override {version = "${inputs.umu.shortRev}";}) ];
}
```

Expand Down
6 changes: 3 additions & 3 deletions packaging/nix/combine.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ env, package, symlinkJoin }:
{ env, package, symlinkJoin,version }:
symlinkJoin {
name = "umu-run-bwrap";
paths = [
env
package
(package.override {version = "${version}";})
(env.override {version = "${version}";})
];
postBuild = ''
rm $out/bin/umu
Expand Down
6 changes: 3 additions & 3 deletions packaging/nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions packaging/nix/flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
description = "umu universal game launcher";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixpkgs-unstable";
};
};
outputs = { self, nixpkgs }:
let
Expand All @@ -10,11 +15,12 @@
in
let
pyth = nixpk.pkgs.python3;
version = "1.1.3";
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; };
umu-launcher = nixpk.callPackage ./umu-launcher.nix { umu-launcher=umu-launcher-src; pyth1=pyth; version = "${version}"; };
umu-run = nixpk.callPackage ./umu-run.nix { package=umu-launcher; version = "${version}"; };
in{
packages.x86_64-linux.umu = nixpk.callPackage ./combine.nix { env=umu-run; package=umu-package; };
packages.x86_64-linux.umu = nixpk.callPackage ./combine.nix { env=umu-run; package=umu-launcher; version = "${version}"; };
};
}
7 changes: 4 additions & 3 deletions packaging/nix/umu-launcher.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{pyth1 ,python3Packages , umu-launcher, pkgs, ...}:
{pyth1 ,python3Packages , umu-launcher, pkgs,version, ...}:
python3Packages.buildPythonPackage {
name = "umu-launcher";
version = "1.1.3";
pname = "umu-launcher";
version = "${version}";
src = umu-launcher;
pyproject = false;
depsBuildBuild = [
Expand All @@ -22,6 +22,7 @@ python3Packages.buildPythonPackage {
];
propagatedBuildInputs = [
pyth1
pkgs.bubblewrap
pkgs.python3Packages.xlib
pkgs.python3Packages.filelock
];
Expand Down
8 changes: 6 additions & 2 deletions packaging/nix/umu-run.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ package, buildFHSEnv, writeShellScript, ...}:
buildFHSEnv {
{ package, buildFHSEnv, writeShellScript,version, ...}:
buildFHSEnv{
name = "umu-run";
version = "${version}";
targetPkgs = pkgs: ([
package
]);
runScript = writeShellScript "umu-run-shell" ''
${package}/bin/umu "$@"
'';
Expand Down

0 comments on commit 2af98f4

Please sign in to comment.