Skip to content

Comments

libjack2: move headers to "dev" outputs#226315

Merged
trofi merged 1 commit intoNixOS:stagingfrom
trofi:libjack2-dev-output
May 17, 2023
Merged

libjack2: move headers to "dev" outputs#226315
trofi merged 1 commit intoNixOS:stagingfrom
trofi:libjack2-dev-output

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Apr 15, 2023

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from cillianderoiste April 15, 2023 18:13
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. labels Apr 15, 2023
@vcunat vcunat added the 6.topic: closure size The final size of a derivation, including its dependencies label Apr 16, 2023
@Artturin
Copy link
Member

Artturin commented Apr 17, 2023

diff --git a/pkgs/applications/audio/csound/default.nix b/pkgs/applications/audio/csound/default.nix
index 6afddb467d0..d7a0357429a 100644
--- a/pkgs/applications/audio/csound/default.nix
+++ b/pkgs/applications/audio/csound/default.nix
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
 
   cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
     ++ lib.optional stdenv.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib"
-    ++ lib.optional (libjack2 != null) "-DJACK_HEADER=${libjack2}/include/jack/jack.h";
+    ++ lib.optional (libjack2 != null) "-DJACK_HEADER=${lib.getDev libjack2}/include/jack/jack.h";
 
   nativeBuildInputs = [ cmake flex bison gettext ];
   buildInputs = [ libsndfile libsamplerate boost ]
diff --git a/pkgs/applications/audio/nootka/default.nix b/pkgs/applications/audio/nootka/default.nix
index 2b2372c6d87..3ce835138f6 100644
--- a/pkgs/applications/audio/nootka/default.nix
+++ b/pkgs/applications/audio/nootka/default.nix
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
   ];
 
   cmakeFlags = [
-    "-DCMAKE_INCLUDE_PATH=${libjack2}/include/jack;${libpulseaudio.dev}/include/pulse"
+    "-DCMAKE_INCLUDE_PATH=${lib.getDev libjack2}/include/jack;${lib.getDev libpulseaudio}/include/pulse"
     "-DENABLE_JACK=ON"
     "-DENABLE_PULSEAUDIO=ON"
   ];
diff --git a/pkgs/applications/audio/polyphone/default.nix b/pkgs/applications/audio/polyphone/default.nix
index 568f3b6ba15..9ab81d2a5c4 100644
--- a/pkgs/applications/audio/polyphone/default.nix
+++ b/pkgs/applications/audio/polyphone/default.nix
@@ -36,7 +36,7 @@ mkDerivation rec {
   qmakeFlags = [
     "DEFINES+=USE_LOCAL_STK"
     "DEFINES+=USE_LOCAL_QCUSTOMPLOT"
-    "INCLUDEPATH+=${libjack2}/include/jack"
+    "INCLUDEPATH+=${lib.getDev libjack2}/include/jack"
   ];
 
   meta = with lib; {
diff --git a/pkgs/tools/misc/timidity/default.nix b/pkgs/tools/misc/timidity/default.nix
index 1f0e68bb9c0..5a75fb52329 100644
--- a/pkgs/tools/misc/timidity/default.nix
+++ b/pkgs/tools/misc/timidity/default.nix
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
     "AR=${stdenv.cc.targetPrefix}ar"
   ];
 
-  NIX_LDFLAGS = "-ljack -L${libjack2}/lib";
+  NIX_LDFLAGS = "-ljack -L${lib.getLib libjack2}/lib";
 
   instruments = fetchurl {
     url = "http://www.csee.umbc.edu/pub/midia/instruments.tar.gz";

@trofi trofi marked this pull request as draft April 17, 2023 20:44
@trofi
Copy link
Contributor Author

trofi commented Apr 17, 2023

Good catch! converting to draft.

@trofi
Copy link
Contributor Author

trofi commented Apr 23, 2023

Proposed timidity cleanup as #227789

@trofi
Copy link
Contributor Author

trofi commented Apr 23, 2023

Proposed polyphone cleanup as #227866

@trofi
Copy link
Contributor Author

trofi commented May 6, 2023

Proposed csound cleanup as #230329

@trofi
Copy link
Contributor Author

trofi commented May 6, 2023

Proposed nootka conversion as #230334

@trofi trofi marked this pull request as ready for review May 8, 2023 14:15
@trofi
Copy link
Contributor Author

trofi commented May 8, 2023

All the dependencies are sorted. Ready for review.

@trofi trofi merged commit cfe0093 into NixOS:staging May 17, 2023
@trofi trofi deleted the libjack2-dev-output branch May 17, 2023 06:26
vcunat added a commit that referenced this pull request May 30, 2023
The split was merged in cfe0093 from PR #226315
This fixes qtractor build (and maybe others):
https://hydra.nixos.org/build/221582472/nixlog/3/tail
@vcunat
Copy link
Member

vcunat commented May 30, 2023

It's generally good to glance at the .pc files when splitting outputs. (I fixed this one now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: closure size The final size of a derivation, including its dependencies 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants