Due to lack of nix-skills I gave up on compiling it via nix (and ideally submitting it upstream).
For now, I'm just using the AWESOME ocp player via this ~/bin/ocp
shellscript:
#!/bin/bash
nix_windows(){
test -d ~/apps/ocp || {
mkdir ~/apps/ocp
cd ~/apps/ocp
wget "https://github.com/mywave82/opencubicplayer/releases/download/v0.2.107/ocp-windows-32bit-0.2.107.zip"
unzip ocp-windows*.zip
rm *.zip
}
cd ~/apps/ocp
nix-shell -p wine --run "wine ocp.exe $*"
}
linux(){
exec /usr/bin/ocp -fl0,r0 -va300 -dcurses "$*"
#exec /usr/bin/ocp -fl0,r0 -va300 -dsdl2 "$*"
}
test -n $NIX_PATH && nix_windows "$*"
test -n $NIX_PATH || linux "$*"