Skip to content

Commit

Permalink
⚡ Make C/C++ nedryland 9.0.0 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
sakarias88 committed Nov 7, 2023
1 parent f0e3a3c commit 0c76225
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions c/make-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ let
buildPackages.valgrind
]
++ attrs.nativeBuildInputs or [ ]
++ lib.optional enableDoxygen (
++ lib.optional (attrs.enableDoxygen or enableDoxygen) (
wrappedDoxygen
(attrs.doxygenOutputDir or doxygenOutputDir)
[
Expand Down Expand Up @@ -123,10 +123,8 @@ let

shellCommands = {
build = {
# TODO: fix undef of buildPhase when we stop using mkShell
script = ''
: ''${NIX_LOG_FD:=} ''${buildFlags:=}
${if attrs ? buildPhase then "" else "unset buildPhase"}
phases="''${preConfigurePhases:-} configurePhase ''${preBuildPhases:-} buildPhase"
genericBuild
'';
Expand All @@ -144,7 +142,6 @@ let
check = {
script = ''
: ''${NIX_LOG_FD:=} ''${buildFlags:=} ''${lintPhase:=echo 'no lintPhase'}
${if attrs ? buildPhase then "" else "unset buildPhase"}
phases="''${preConfigurePhases:-} configurePhase ''${preBuildPhases:-} buildPhase checkPhase lintPhase"
genericBuild
'';
Expand Down

0 comments on commit 0c76225

Please sign in to comment.