Loading pkgs/by-name/eq/equibop/package.nix +22 −10 Original line number Diff line number Diff line Loading @@ -6,16 +6,20 @@ makeWrapper, makeDesktopItem, copyDesktopItems, electron, electron_40, python3Packages, pipewire, libpulseaudio, jq, autoPatchelfHook, bun, nodejs, withTTS ? true, withMiddleClickScroll ? false, }: let electron = electron_40; in stdenv.mkDerivation (finalAttrs: { pname = "equibop"; version = "3.1.8"; Loading @@ -40,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ bun jq nodejs # XXX: Equibop *does not* ship venmic as a prebuilt node module. The package # seems to build with or without this hook, but I (NotAShelf) don't have the Loading Loading @@ -67,8 +72,15 @@ stdenv.mkDerivation (finalAttrs: { ''; # electron builds must be writable to support electron fuses preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' preBuild = '' # Validate electron version matches upstream package.json if [ "`jq -r '.devDependencies.electron' < package.json | cut -d. -f1 | tr -d '^'`" != "${lib.versions.major electron.version}" ] then echo "ERROR: electron version mismatch between package.json and nixpkgs" exit 1 fi '' + lib.optionalString stdenv.hostPlatform.isDarwin '' cp -r ${electron.dist}/Electron.app . chmod -R u+w Electron.app '' Loading Loading
pkgs/by-name/eq/equibop/package.nix +22 −10 Original line number Diff line number Diff line Loading @@ -6,16 +6,20 @@ makeWrapper, makeDesktopItem, copyDesktopItems, electron, electron_40, python3Packages, pipewire, libpulseaudio, jq, autoPatchelfHook, bun, nodejs, withTTS ? true, withMiddleClickScroll ? false, }: let electron = electron_40; in stdenv.mkDerivation (finalAttrs: { pname = "equibop"; version = "3.1.8"; Loading @@ -40,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ bun jq nodejs # XXX: Equibop *does not* ship venmic as a prebuilt node module. The package # seems to build with or without this hook, but I (NotAShelf) don't have the Loading Loading @@ -67,8 +72,15 @@ stdenv.mkDerivation (finalAttrs: { ''; # electron builds must be writable to support electron fuses preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' preBuild = '' # Validate electron version matches upstream package.json if [ "`jq -r '.devDependencies.electron' < package.json | cut -d. -f1 | tr -d '^'`" != "${lib.versions.major electron.version}" ] then echo "ERROR: electron version mismatch between package.json and nixpkgs" exit 1 fi '' + lib.optionalString stdenv.hostPlatform.isDarwin '' cp -r ${electron.dist}/Electron.app . chmod -R u+w Electron.app '' Loading