!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

133 Members
33 Servers

Load older messages


SenderMessageTime
26 Dec 2023
@jules_magois:matrix.org@jules_magois:matrix.org the vst is vcv-rack (paid version), so I tried to override the vcv-rack derivation and used autoPatchelfHook
`
pkgs.vcv-rack.overrideAttrs (old: {
# ...
src = pkgs.requireFile {
message = "run \"nix store add-file RackPro-2.4.1-lin-x64.zip\"";
name = "RackPro-2.4.1-lin-x64.zip";
# sha256 obtained with: nix-hash --flat --type sha256 RackPro-2.4.1-lin-x64.zip
sha256 =
"564a9f5f7f07c87b2a83236e4a5686d5b2ee8062318e9b77fdd533f1494e1a12";
};
nativeBuildInputs = with pkgs; [
copyDesktopItems
makeWrapper
wrapGAppsHook
autoPatchelfHook
unzip
];
unpackPhase = ''
unzip $src
'';
# ...
installPhase = ''
runHook preInstall

# copy vst/clap plugins to $out/lib

# copy vcv rack
mkdir -p $out/bin
cd Rack2Pro
cp Rack $out/bin
cp libRack.so $out/lib

# ...
'';
postFixup = ''
for file in \
"$out/lib/clap/VCV Rack 2.clap" \
"$out/lib/vst/VCV Rack 2.so" \
"$out/lib/vst/VCV Rack 2.vst3/Contents/x86_64-linux/VCV Rack 2.so"
do
patchelf --set-rpath "${lib.makeLibraryPath old.buildInputs}" "$file"
done
'' + old.postFixup;

meta.description = "Open-source virtual modular synthesizer - paid version";
})
`
18:38:44
@jules_magois:matrix.org@jules_magois:matrix.orgI use pipewire btw. Not sure if I did the patchelf part right (in postFixup)18:41:06
@jules_magois:matrix.org@jules_magois:matrix.orgso yeah if anybody faced the same problem and has an idea of how to fix it, that would be great :)18:45:24
@jules_magois:matrix.org@jules_magois:matrix.org the vst is vcv-rack (paid version), so I tried to override the vcv-rack derivation and used autoPatchelfHook

pkgs.vcv-rack.overrideAttrs (old: {
# ...
src = pkgs.requireFile {
message = "run \"nix store add-file RackPro-2.4.1-lin-x64.zip\"";
name = "RackPro-2.4.1-lin-x64.zip";
# sha256 obtained with: nix-hash --flat --type sha256 RackPro-2.4.1-lin-x64.zip
sha256 =
"564a9f5f7f07c87b2a83236e4a5686d5b2ee8062318e9b77fdd533f1494e1a12";
};
nativeBuildInputs = with pkgs; [
copyDesktopItems
makeWrapper
wrapGAppsHook
autoPatchelfHook
unzip
];
unpackPhase = ''
unzip $src
'';
# ...
installPhase = ''
runHook preInstall

# copy vst/clap plugins to $out/lib
# ...

# copy vcv rack
# ...
'';
postFixup = ''
for file in \
"$out/lib/clap/VCV Rack 2.clap" \
"$out/lib/vst/VCV Rack 2.so" \
"$out/lib/vst/VCV Rack 2.vst3/Contents/x86_64-linux/VCV Rack 2.so"
do
patchelf --set-rpath "${lib.makeLibraryPath old.buildInputs}" "$file"
done
'' + old.postFixup;

meta.description = "Open-source virtual modular synthesizer - paid version";
}
18:49:42
27 Dec 2023
@lotte:chir.rsCharlotte šŸ¦ (it/rac/racs/racself/šŸ¦/plush) changed their profile picture.09:13:53
@ta3arif:matrix.orgBeh_1479 joined the room.10:50:40
@jcelerier:matrix.orgJean-Michaƫl Celerier
In reply to @Minijackson:matrix.org
see here, the top comment: https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix
https://github.com/NixOS/nixpkgs/pull/277145 :)
17:32:58
@ta3arif:matrix.orgBeh_1479 set a profile picture.17:33:32
28 Dec 2023
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 to jopejoe1 [4094].18:08:44
29 Dec 2023
@tammi:greyseal.euTammi (she/ey) changed their profile picture.09:39:14
30 Dec 2023
@nam3l33ss:matrix.orgĀ·ā˜½ā€¢Namelessā˜†ā€¢777 Ā· changed their profile picture.08:01:43
@kiken_sr:matrix.orgKiken joined the room.16:08:17
@kiken_sr:matrix.orgKiken set a profile picture.16:09:04
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 [4094] to jopejoe1.22:04:28
31 Dec 2023
@Minijackson:matrix.orgMinijacksonHey all! I've packaged a really nice MIDI debug tool: https://github.com/NixOS/nixpkgs/pull/277901 If anyone have a macOS on hand and can make the macOS port, or have time to review the PR, I'd appreciate it!12:00:37
4 Jan 2024
@thetootler:matrix.orgthetootler joined the room.06:24:13
@a-n-n-a-l-e-e:matrix.org@a-n-n-a-l-e-e:matrix.org joined the room.13:17:29
15 Jan 2024
@wonko:4amlunch.netBrian Hechinger joined the room.16:49:49
@wonko:4amlunch.netBrian Hechinger
In reply to @Minijackson:matrix.org
Hey all! I've packaged a really nice MIDI debug tool: https://github.com/NixOS/nixpkgs/pull/277901

If anyone have a macOS on hand and can make the macOS port, or have time to review the PR, I'd appreciate it!
I'll definitely take a look at that once I get things sorted. Looks very interesting.
16:52:26
@wonko:4amlunch.netBrian HechingerBut, in the meantime I'm struggling big time with getting audio working properly.16:52:45
@wonko:4amlunch.netBrian Hechinger

So I used musnix to set everything up:

  sound.enable = false;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;

17:00:19
@wonko:4amlunch.netBrian Hechinger *

So I used musnix to set everything up:

  sound.enable = false;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;

  services = {
    pipewire = {
      enable = true;
      audio.enable = true;
      alsa.enable = true;
      alsa.support32Bit = true;
      pulse.enable = true;
      jack.enable = true;
      socketActivation = true;
    };

  musnix = {
    enable = true;
    ffado.enable = true;
    soundcardPciId = "08:00.0";
    kernel.realtime = true;
    rtirq = {
      resetAll = 1;
      prioLow = 0;
      enable = true;
      nameList = "rtc0 firewire_ohci";
    };
  };

  users.users.wonko = {
    isNormalUser = true;
    description = "Brian Hechinger";
    shell = pkgs.zsh;
    extraGroups = [
      "wheel"
      "audio"
      "libvirtd"
      "users"
      "docker"
      "kvm"
      "wireshark"
      "onepassword"
      "onepassword-cli"
      "qemu-libvirtd"
    ];
  };

17:01:26
@wonko:4amlunch.netBrian Hechinger *

So I used musnix to set everything up:

  sound.enable = false;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;

  services = {
    pipewire = {
      enable = true;
      audio.enable = true;
      alsa.enable = true;
      alsa.support32Bit = true;
      pulse.enable = true;
      jack.enable = true;
      socketActivation = true;
    };

  musnix = {
    enable = true;
    ffado.enable = true;
    soundcardPciId = "08:00.0";
    kernel.realtime = true;
    rtirq = {
      resetAll = 1;
      prioLow = 0;
      enable = true;
      nameList = "rtc0 firewire_ohci";
    };
  };

  users.users.wonko = {
    isNormalUser = true;
    description = "Brian Hechinger";
    shell = pkgs.zsh;
    extraGroups = [
      "wheel"
      "audio"
      "libvirtd"
      "users"
      "docker"
      "kvm"
      "wireshark"
      "onepassword"
      "onepassword-cli"
      "qemu-libvirtd"
    ];
  };
17:01:31
@wonko:4amlunch.netBrian HechingerRaySession (which I'd really like to use) claims that JACK isn't running.17:01:52
@wonko:4amlunch.netBrian HechingerIf I use qjackctl that sees jack as running and reports back all the info.17:02:48
@wonko:4amlunch.netBrian HechingerIf I use qjackctl or qpwgraph to do routing (attempting to route through ardour, for example) no audio ever gets anywhere even though the graph shows that it should.17:03:34
@wonko:4amlunch.netBrian HechingerPulseaudio works... ok-ish. Firefox plays audio through it but it's crackly (and qjackctl reports no xruns)17:04:29
@wonko:4amlunch.netBrian HechingerSpotify is crackly and the audio slowly gets faster and faster.17:04:42
@wonko:4amlunch.netBrian HechingerI fired up Wobbly Life and audio from that was perfectly fine. (until I quit the game then audio freaked out for a few seconds)17:05:06
@wonko:4amlunch.netBrian HechingerI have a firewire audio device (Focusrite Saffire Pro 24) if that makes any difference (I'm assuming it really shouldn't for the issues I'm seeing)17:06:11

Show newer messages


Back to Room ListRoom Version: 9