Commit ace2c78
Changed files (3)
pkgs/dwproton-bin/default.nix
@@ -0,0 +1,54 @@
+# Modify From https://github.com/powerofthe69/nix-gaming-edge
+{
+ pkgs,
+ renameInternalName ? true,
+}:
+pkgs.stdenv.mkDerivation rec {
+ pname = "dwproton";
+ version = "10.0-26";
+
+ src = pkgs.fetchurl {
+ url = "https://dawn.wine/dawn-winery/dwproton/releases/download/dwproton-${version}/dwproton-${version}-x86_64.tar.xz";
+ hash = "sha256-p7WGDt2JJX208VW0w9ozHolGBNNKEmDa71cZJy+r8Z8=";
+ };
+
+ nativeBuildInputs = [pkgs.xz];
+ outputs = [
+ "out"
+ "steamcompattool"
+ ];
+
+ installPhase = ''
+ runHook preInstall
+
+ # Create the steamcompat directory
+ mkdir -p $steamcompattool
+ cp -r ./* $steamcompattool/
+
+ # Modify the display name
+ sed -i -r "s|\"display_name\".*|\"display_name\" \"dwproton\"|" \
+ $steamcompattool/compatibilitytool.vdf
+
+ ${pkgs.lib.optionalString renameInternalName ''
+ sed -i -r 's|"dwproton-[^"]*"(\s*// Internal name)|"dwproton"\1|' $steamcompattool/compatibilitytool.vdf
+ ''}
+
+ # Create a real folder so that Steam doesn't require reselecting compatibility tool on update
+ mkdir -p $out/share/
+
+ # Create a real folder so that Steam doesn't require reselecting compatibility tool on update
+ mkdir -p $out/share/steam/compatibilitytools.d/dwproton
+
+ #Symlink the files INSIDE, not the folder itself. Oopsie
+ ln -s $steamcompattool/* $out/share/steam/compatibilitytools.d/dwproton/
+
+ runHook postInstall
+ '';
+
+ meta = with pkgs.lib; {
+ description = "Dawn Winery's custom Proton fork with fixes for various games";
+ homepage = "https://dawn.wine/dawn-winery/dwproton";
+ license = licenses.bsd3;
+ platforms = ["x86_64-linux"];
+ };
+}
default.nix
@@ -16,5 +16,6 @@
# flakeModules = { }; # flake-parts modules
overlays = import ./overlays; # nixpkgs overlays
+ dwproton-bin = pkgs.callPackage ./pkgs/dwproton-bin {};
particle-music = pkgs.callPackage ./pkgs/particle-music {};
}
README.md
@@ -6,4 +6,5 @@
| **Path** | **Name** | **Version** |
| ---------------- | ---------------------------------------------------------- | ----------- |
+| `dwproton-bin` | [dwproton-bin](https://dawn.wine/dawn-winery/dwproton) | `10.0-26` |
| `particle-music` | [particle-music](https://github.com/AfalpHy/ParticleMusic) | `2.1.2` |