From a801c22ed373ec0e53fd1cb9ab5d9026679d65d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Mon, 27 Apr 2020 00:56:15 +0200 Subject: [PATCH] av1client things --- overlays/av1client.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 overlays/av1client.nix diff --git a/overlays/av1client.nix b/overlays/av1client.nix new file mode 100644 index 0000000..cbda803 --- /dev/null +++ b/overlays/av1client.nix @@ -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 + ''; + + }; +}