Skip to content

Commit 4292608

Browse files
author
itazurasuki
committed
dfw-rs: rename dfwad to dfw-rs
1 parent 2af7076 commit 4292608

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

flake.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
wadcvt = final.callPackage d2dfPkgs.wadcvt {
5656
inherit Doom2D-Forever;
5757
};
58-
dfwad = final.callPackage d2dfPkgs.dfwad {};
58+
dfw-rs = final.callPackage d2dfPkgs.dfw-rs {};
59+
dfwad = lib.warn "dfwad is an alias of dfw-rs, so use that!" final.dfw-rs;
5960
cctools = osxcross.packages.${system}.cctools;
6061
macdylibbundler = prev.macdylibbundler.overrideAttrs (prevAttrs: let
6162
otool = final.writeShellScriptBin "otool" ''
@@ -120,7 +121,7 @@
120121

121122
assets = import ./packages/assets.nix {
122123
inherit lib;
123-
inherit (pkgs) callPackage stdenv writeText dfwad;
124+
inherit (pkgs) callPackage stdenv writeText dfw-rs;
124125
inherit DF-Assets d2df-editor;
125126
inherit (d2dfPkgs) buildWad;
126127
inherit (assetsLib) mkAssetsPath;
@@ -151,7 +152,7 @@
151152
lib.recursiveUpdate cross aux;
152153

153154
packages = {
154-
inherit (pkgs) wadcvt dfwad;
155+
inherit (pkgs) wadcvt dfw-rs dfwad;
155156
};
156157

157158
forPrebuild = let
@@ -164,7 +165,7 @@
164165
acc
165166
// {
166167
"${cur}" =
167-
pkgs.closureInfo {rootPaths = [(pkgs.linkFarmFromDrvs "cache-${cur}" drvs) pkgs.dfwad];};
168+
pkgs.closureInfo {rootPaths = [(pkgs.linkFarmFromDrvs "cache-${cur}" drvs) pkgs.dfw-rs];};
168169
}) {}
169170
arches;
170171

game/buildWad/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ in {
1818
util-linux,
1919
bash,
2020
dos2unix,
21-
dfwad,
21+
dfw-rs,
2222
dfwadCompression ? "none",
2323
shouldNormalize ? true,
2424
normalizeBlacklist ? [],
@@ -40,7 +40,7 @@ in {
4040
dontFixup = true;
4141

4242
nativeBuildInputs =
43-
[bash gawk gnused convmv dfwad coreutils util-linux dos2unix]
43+
[bash gawk gnused convmv dfw-rs coreutils util-linux dos2unix]
4444
++ lib.optionals shouldNormalize [
4545
parallel
4646
findutils
@@ -85,7 +85,7 @@ in {
8585
+ ''
8686
mkdir -p temp
8787
chmod -R 777 temp
88-
echo "Moving files from ${lstPath} to dfwad suitable directory"
88+
echo "Moving files from ${lstPath} to dfw-rs suitable directory"
8989
${gawk}/bin/awk -f ${buildWadScript} -v prefix="temp" ${lstPath}
9090
# For some reason, this AWK script sets wrong perms
9191
chmod -R 777 temp
@@ -97,8 +97,8 @@ in {
9797
echo "moving $1 to $(dirname $1)/$WITHOUT_EXT";
9898
mv "$1" "$(dirname $1)/$WITHOUT_EXT";
9999
' bash {} \;
100-
echo "Calling ${lib.getExe dfwad}"
101-
${lib.getExe dfwad} -v -z "${dfwadCompression}" temp/ ${outName}.wad pack
100+
echo "Calling dfw-rs"
101+
dfw-rs -v -z "${dfwadCompression}" temp/ ${outName}.wad pack
102102
'';
103103

104104
installPhase = ''

game/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
doom2d-multiplayer-game-data = import ./d2dmpData.nix;
55
editor = import ./editor;
66
wadcvt = import ./utils/wadcvt.nix;
7-
dfwad = import ./utils/dfwad.nix;
7+
dfw-rs = import ./utils/dfw-rs.nix;
88
doom2df-bundle = import ./bundle;
99
buildWad = (import ./buildWad).buildWad;
1010
buildWadScript = (import ./buildWad).buildWadScript;

packages/assets.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
DF-Assets,
77
d2df-editor,
88
buildWad,
9-
dfwad,
9+
dfw-rs,
1010
mkAssetsPath,
1111
}: rec {
1212
wads = lib.listToAttrs (lib.map (wad: {
@@ -18,7 +18,7 @@
1818
lstPath = "${wad.out}.lst";
1919
dfwadCompression = "best";
2020
inherit DF-Assets;
21-
inherit dfwad;
21+
inherit dfw-rs;
2222
};
2323
}) [
2424
{

0 commit comments

Comments
 (0)