airwindows: init at unstable-2020-08-24#89084
airwindows: init at unstable-2020-08-24#89084magnetophon wants to merge 2 commits intoNixOS:masterfrom
Conversation
OPNA2608
left a comment
There was a problem hiding this comment.
See review comments for some improvements.
| { stdenv, fetchFromGitHub, requireFile, unzip, cmake }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "airwindows-${version}"; |
There was a problem hiding this comment.
name is automatically constructed from pname-version.
| name = "airwindows-${version}"; | |
| pname = "airwindows"; |
There was a problem hiding this comment.
@OPNA2608 I seem to have messed up the push, sorry.
I'm working on getting the new fork to build, and once will than push the fixes.
There was a problem hiding this comment.
I had some trouble pushing to this branch, so I made #123954
| sha256 = "1ya4qbc63sb52nzisdapsydrnnpqnjsl5kgxibbr3dxf32474g89"; | ||
| }; | ||
| installPhase = "cp -r . $out"; | ||
| }; |
There was a problem hiding this comment.
You can add the unfree license here and keep the main derivation MIT.
| }; | |
| meta.license = stdenv.lib.licenses.unfree; | |
| }; |
There was a problem hiding this comment.
Thanks for the feedback, I'm working on it.
I think you mean line 23, in vst-sdk, right?
| sha256 = "1mh7c176fdl5y5ixkgzj2j2b7qifp3lgnxmbn6b7bvg3sv5wsxg3"; | ||
| }; | ||
|
|
||
| vst-sdk = stdenv.mkDerivation rec { |
There was a problem hiding this comment.
I see this duplicated over in the already existing airwave distribution, just in a different version.
nixpkgs/pkgs/applications/audio/airwave/default.nix
Lines 16 to 26 in 84cf00f
And a PR with the SDK part updated to the very version you're requiring here, #82380
I think I'd rather see this as a separate derivation, but there were objections to that a long while ago (#10006). I wonder if these still exist? Just commenting on this situation, not requesting any change in particular.
|
I just found https://github.com/laserbat/airwindows, created a few hours ago. |
|
Hi @magnetophon I don't think it would b a good idea to switch, as my fork is for personal use and might not be 100% compatible with originals. I can, however, make a branch that contains no changes other than improved build system for linux. Would that be helpful? |
|
@laserbat Thanks for the feedback and the offer. |
|
Well, current build system for linux doesn't really work without some patching and even with patches provided by some people in pull requests it has certain issues (mainly very slow build time). I rewrote the cmake setup so that's it's quick and painless to build and doesn't need any changes besides downloading VST SDK files. Anyway, here's the branch in question https://github.com/laserbat/airwindows/tree/new_build I do plan to keep it up to date. I'll set up a cron script that merges new changes from upstream into this branch, since upstream author only changes source files and not build configuration. Hope this helps. |
|
That sounds really good, thank you! |
|
@laserbat And then a whole lot more similar lines. |
|
@laserbat I just noticed airwindows/airwindows@3c0d151 |
|
@magnetophon unfortunately he is too busy to work on the build system right now. I offered him help, but he didn't seem to have the time. And the build fails because you need to download VST SDK first, there's a script named get_vst_sdk.sh included in the LinuxVST folder. Unfortunately Steinberg are really vigilant in DMCAing anybody who has this code in their repository, so it has to be downloaded every time before building. |
|
@laserbat Thanks. I still can't get it to build though, sorry. When I run the commands in that script and then build, I get: When I change the commands to use "include/vstsdk" instead, I get: |
|
My bad! I fixed this issue |
|
Ah, yes, now it builds. Thank you, I thought I was going crazy! |
|
@laserbat I installed manually, but Ardour has now blacklisted all of them. |
3ead5c6 to
e277c52
Compare
| done; | ||
| ''; | ||
|
|
||
| meta = with stdenv.lib; { |
There was a problem hiding this comment.
| meta = with stdenv.lib; { | |
| meta = with lib; { |
|
|
||
| nativeBuildInputs = [ cmake ]; | ||
|
|
||
| patchPhase = '' |
There was a problem hiding this comment.
| patchPhase = '' | |
| postPatch = '' |
There was a problem hiding this comment.
I had some trouble pushing to this branch, so I made #123954
| cp -r ${airwindows-ports}/include/vstsdk/CMakeLists.txt include/vstsdk/ | ||
| cp -r ${vst-sdk}/pluginterfaces include/vstsdk/pluginterfaces | ||
| cp -r ${vst-sdk}/public.sdk/source/vst2.x/* include/vstsdk/ | ||
| chmod -R 777 include/vstsdk/pluginterfaces |
There was a problem hiding this comment.
| chmod -R 777 include/vstsdk/pluginterfaces | |
| chmod -R 755 include/vstsdk/pluginterfaces |
Motivation for this change
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)