2020-04-27 00:56:15 +02:00
|
|
|
self: super:
|
|
|
|
{
|
|
|
|
av1client = super.stdenv.mkDerivation rec {
|
|
|
|
name = "av1client-${version}";
|
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
src = ~/Documents/av1master/src/static;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp client.sh $out/bin/av1client
|
|
|
|
|
|
|
|
sed -i 's,sleep,${super.coreutils}/bin/sleep,' $out/bin/av1client
|
|
|
|
sed -i 's,rm,${super.coreutils}/bin/rm,' $out/bin/av1client
|
|
|
|
sed -i 's,curl,${super.curl}/bin/curl --cacert ${super.cacert}/etc/ssl/certs/ca-bundle.crt,' $out/bin/av1client
|
|
|
|
sed -i 's,jq,${super.jq}/bin/jq,' $out/bin/av1client
|
2020-05-20 00:15:32 +02:00
|
|
|
sed -i 's,ffmpeg ,${self.myffmpeg}/bin/ffmpeg ,' $out/bin/av1client
|
2020-04-27 00:56:15 +02:00
|
|
|
sed -i 's,aomenc ,${self.mylibaom}/bin/aomenc ,' $out/bin/av1client
|
|
|
|
|
|
|
|
chmod +x $out/bin/av1client
|
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|