diff --git a/pkgs/default.nix b/pkgs/default.nix index 99280c1..dff6bf4 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,3 +1,5 @@ self: super: { bwrap-helper = super.callPackage ./bwrap-helper { }; + + osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; }; } diff --git a/pkgs/osu-lazer/default.nix b/pkgs/osu-lazer/default.nix new file mode 100644 index 0000000..6de3865 --- /dev/null +++ b/pkgs/osu-lazer/default.nix @@ -0,0 +1,6 @@ +{ osu-lazer }: +osu-lazer.overrideAttrs (o: o // { + patches = o.patches ++ [ + ./disable-deployed-build.patch + ]; +}) diff --git a/pkgs/osu-lazer/disable-deployed-build.patch b/pkgs/osu-lazer/disable-deployed-build.patch new file mode 100644 index 0000000..5d255c2 --- /dev/null +++ b/pkgs/osu-lazer/disable-deployed-build.patch @@ -0,0 +1,21 @@ +diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs +index b1269e9..efeefa6 100644 +--- a/osu.Game/OsuGameBase.cs ++++ b/osu.Game/OsuGameBase.cs +@@ -109,15 +109,12 @@ public class OsuGameBase : Framework.Game, ICanAcceptFiles + /// + public string VersionHash { get; private set; } + +- public bool IsDeployedBuild => AssemblyVersion.Major > 0; ++ public bool IsDeployedBuild => false; + + public virtual string Version + { + get + { +- if (!IsDeployedBuild) +- return @"local " + (DebugUtils.IsDebugBuild ? @"debug" : @"release"); +- + var version = AssemblyVersion; + return $@"{version.Major}.{version.Minor}.{version.Build}"; + }