-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
airwindows: init at unstable-2020-08-24 #89084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See review comments for some improvements.
{ stdenv, fetchFromGitHub, requireFile, unzip, cmake }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "airwindows-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
is automatically constructed from pname
-version
.
name = "airwindows-${version}"; | |
pname = "airwindows"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback, I'm working on it.
I think you mean line 23, in vst-sdk, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err yea, apologies.
sha256 = "1mh7c176fdl5y5ixkgzj2j2b7qifp3lgnxmbn6b7bvg3sv5wsxg3"; | ||
}; | ||
|
||
vst-sdk = stdenv.mkDerivation rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
vst-sdk = stdenv.mkDerivation rec { | |
name = "vstsdk368_08_11_2017_build_121"; | |
src = requireFile { | |
name = "${name}.zip"; | |
url = "http://www.steinberg.net/en/company/developers.html"; | |
sha256 = "e0f235d8826d70f1ae0ae5929cd198acae1ecff74612fde5c60cbfb45c2f4a70"; | |
}; | |
nativeBuildInputs = [ unzip ]; | |
installPhase = "cp -r . $out"; | |
meta.license = stdenv.lib.licenses.unfree; | |
}; |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta = with stdenv.lib; { | |
meta = with lib; { |
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
patchPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patchPhase = '' | |
postPatch = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chmod -R 777 include/vstsdk/pluginterfaces | |
chmod -R 755 include/vstsdk/pluginterfaces |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)