Skip to content

Commit

Permalink
umu -> umu-launcher: switch to npins & rename to umu-launcher
Browse files Browse the repository at this point in the history
* Rename `umu` to `umu-launcher` to match package name upstream

* Remove flake input for `umu-launcher` and use npins instead
  • Loading branch information
LovingMelody authored and fufexan committed Feb 5, 2025
1 parent 3c83a67 commit 3030553
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- wine-ge
- wine-osu
- wine-tkg
- umu
- umu-launcher

uses: ./.github/workflows/nix.yml
with:
Expand Down
27 changes: 1 addition & 26 deletions flake.lock

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

4 changes: 0 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
umu = {
url = "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = {self, ...} @ inputs:
Expand Down
12 changes: 12 additions & 0 deletions npins/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@
"url": "https://github.com/GloriousEggroll/proton-wine/archive/39021e609a24b6aeffdf9c4695a286d71e7dffbc.tar.gz",
"hash": "000d5kba7vs5nc1sc3946jkpqmch4w09qz74i5zgc7nh7znck6f8"
},
"umu-launcher": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "Open-Wine-Components",
"repo": "umu-launcher"
},
"branch": "main",
"revision": "7a71163b79e56222fe3f3097d1e71208a91a1a3b",
"url": "https://github.com/Open-Wine-Components/umu-launcher/archive/7a71163b79e56222fe3f3097d1e71208a91a1a3b.tar.gz",
"hash": "1s3fblgbm9cvmv6m93lbvg48dhwjldp46yniwaffx1r7dm7sxmsg"
},
"vkd3d-proton": {
"type": "GitRelease",
"repository": {
Expand Down
22 changes: 19 additions & 3 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,23 @@
// extra))
.${wine};
in {
inherit (inputs.umu.packages.${system}) umu;
umu = self.lib.mkDeprecated "warn" config.packages.umu-launcher {
name = "umu";
target = "package";
date = "2025-02-04";
instructions = ''
This package has been renamed to `umu-launcher` to
match the package name in nixpkgs.
'';
};
umu-launcher-unwrapped = pkgs.callPackage "${pins.umu-launcher}/packaging/nix/unwrapped.nix" {
inherit (pkgs) umu-launcher-unwrapped;
version = builtins.substring 0 7 pins.umu-launcher.revision;
};
umu-launcher = pkgs.callPackage "${pins.umu-launcher}/packaging/nix/package.nix" {
inherit (pkgs) umu-launcher;
inherit (config.packages) umu-launcher-unwrapped;
};
dxvk = pkgs.callPackage ./dxvk {inherit pins;};
dxvk-w32 = pkgs.pkgsCross.mingw32.callPackage ./dxvk {inherit pins;};
dxvk-w64 = pkgs.pkgsCross.mingwW64.callPackage ./dxvk {inherit pins;};
Expand Down Expand Up @@ -61,7 +77,7 @@
};

osu-stable = pkgs.callPackage ./osu-stable {
inherit (config.packages) osu-mime proton-osu-bin umu;
inherit (config.packages) osu-mime proton-osu-bin umu-launcher;
wine = config.packages.wine-osu;
wine-discord-ipc-bridge = config.packages.wine-discord-ipc-bridge.override {wine = config.packages.wine-osu;};
};
Expand Down Expand Up @@ -91,7 +107,7 @@
star-citizen = pkgs.callPackage ./star-citizen {
wine = pkgs.wineWowPackages.staging;
winetricks = config.packages.winetricks-git;
inherit (config.packages) umu;
inherit (config.packages) umu-launcher;
};
star-citizen-umu = config.packages.star-citizen.override {useUmu = true;};

Expand Down
6 changes: 3 additions & 3 deletions pkgs/osu-stable/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
wine-discord-ipc-bridge,
winetricks,
wine,
umu,
umu-launcher,
proton-osu-bin,
wineFlags ? "",
pname ? "osu-stable",
location ? "$HOME/.osu",
useUmu ? false,
useUmu ? true,
protonPath ? "${proton-osu-bin.steamcompattool}",
protonVerbs ? ["waitforexitandrun"],
tricks ? ["gdiplus" "dotnet45" "meiryo"],
Expand Down Expand Up @@ -47,7 +47,7 @@
PATH=${
lib.makeBinPath (
if useUmu
then [umu]
then [umu-launcher]
else [wine winetricks]
)
}:$PATH
Expand Down
4 changes: 2 additions & 2 deletions pkgs/star-citizen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
winetricks,
wine,
dxvk,
umu,
umu-launcher,
proton-ge-bin,
wineFlags ? "",
pname ? "star-citizen",
Expand Down Expand Up @@ -81,7 +81,7 @@
PATH=${
lib.makeBinPath (
if useUmu
then [umu]
then [umu-launcher]
else [wine winetricks]
)
}:$PATH
Expand Down

0 comments on commit 3030553

Please sign in to comment.