Skip to content

Commit

Permalink
maybe the right way to expose version
Browse files Browse the repository at this point in the history
  • Loading branch information
beh-10257 committed Oct 17, 2024
1 parent 4fd7c7a commit 234bd1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packaging/nix/combine.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ env, package, symlinkJoin, version ? "1.1.3" }:
{ env, package, symlinkJoin,version }:
symlinkJoin {
name = "umu-run-bwrap";
paths = [
env
(package.override {version = version;})
(package.override {version = "${version}";})
];
postBuild = ''
rm $out/bin/umu
Expand Down
5 changes: 3 additions & 2 deletions packaging/nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,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-package = nixpk.callPackage ./umu-launcher.nix { umu-launcher=umu-launcher-src; pyth1=pyth; version = "${version}"; };
umu-run = nixpk.callPackage ./umu-run.nix { package=umu-package; };
in{
packages.x86_64-linux.umu = nixpk.callPackage ./combine.nix { env=umu-run; package=umu-package; version = "1.1.3"; };
packages.x86_64-linux.umu = nixpk.callPackage ./combine.nix { env=umu-run; package=umu-package; version = "${version}"; };
};
}

0 comments on commit 234bd1b

Please sign in to comment.