av1client things

This commit is contained in:
Daniel Løvbrøtte Olsen 2020-04-27 00:56:15 +02:00 committed by Daniel Olsen
parent 8f0ab5bb2e
commit a801c22ed3
1 changed files with 24 additions and 0 deletions

24
overlays/av1client.nix Normal file
View File

@ -0,0 +1,24 @@
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
sed -i 's,ffmpeg ,${super.ffmpeg}/bin/ffmpeg ,' $out/bin/av1client
sed -i 's,aomenc ,${self.mylibaom}/bin/aomenc ,' $out/bin/av1client
chmod +x $out/bin/av1client
'';
};
}