Skip to content

Commit

Permalink
drl: disable broken Linux build; add debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Oct 30, 2024
1 parent bfa4b2e commit 1a8a6fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,23 @@ in {
drl-audio-hq = callPackage ./pkgs/drl/audio.nix { audioQuality = "hq"; };
drl-audio-lq = callPackage ./pkgs/drl/audio.nix { audioQuality = "lq"; };
drl-audio = self.drl-audio-hq;
_ciOnly.drl-dev = pkgs.lib.optionalAttrs (pkgs.hostPlatform.system == "x86_64-linux") (pkgs.lib.recurseIntoAttrs {
makewad = self.drl-unwrapped.overrideAttrs (old: {
pname = "drl-makewad-test";
buildPhase = ''
runHook preBuild
mkdir tmp
lua makefile.lua bin/makewad
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D bin/makewad "$out"/bin/makewad
runHook postInstall
'';
meta = {};
});
});

# Can't just pass `-L` to `nix-build-uncached`: it ends up being passed to both
# old `nix-build` (which doesn't understand it) and new `nix build` (which does).
Expand Down
2 changes: 1 addition & 1 deletion pkgs/drl/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ in stdenv.mkDerivation rec {
runHook preBuild
mkdir tmp
lua makefile.lua
ls -al bin
runHook postBuild
'';
installPhase = ''
Expand Down Expand Up @@ -118,6 +117,7 @@ in stdenv.mkDerivation rec {
# Music (according to <https://simonvolpert.com/drla/>)
cc-by-sa-40
];
badPlatforms = with lib.platforms; [linux];
maintainers = [maintainers.Rhys-T];
};
}

0 comments on commit 1a8a6fe

Please sign in to comment.