From e1f29188d38b033f6428a5c055bf18e28508141e Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Fri, 10 Jul 2020 14:32:26 +0200 Subject: [PATCH] ree --- default.nix | 2 +- pkgs/grav1/default.nix | 22 +++++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/default.nix b/default.nix index db2b4a0..9b06e50 100644 --- a/default.nix +++ b/default.nix @@ -8,7 +8,7 @@ { pkgs ? import {} }: -{ +rec { # The `lib`, `modules`, and `overlay` names are special lib = import ./lib { inherit pkgs; }; # functions modules = import ./modules; # NixOS modules diff --git a/pkgs/grav1/default.nix b/pkgs/grav1/default.nix index 5749cf4..44c18a6 100644 --- a/pkgs/grav1/default.nix +++ b/pkgs/grav1/default.nix @@ -14,12 +14,14 @@ stdenv.mkDerivation { pname = "grav1"; version = "0.0.0-20200708"; - src = fetchFromGitHub { - owner = "wwww-wwww"; - repo = "grav1"; - rev = "975e16d7fedc2d4f012c694cb5b1b0876c3cac01"; - sha256 = "11vingnczwy7wxrzp0hqij0jwwzbwjjd8l35wk2zps28npazaly3"; - }; +# src = fetchFromGitHub { +# owner = "wwww-wwww"; +# repo = "grav1"; +# rev = "975e16d7fedc2d4f012c694cb5b1b0876c3cac01"; +# sha256 = "11vingnczwy7wxrzp0hqij0jwwzbwjjd8l35wk2zps28npazaly3"; +# }; + + src = ./grav1; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ pythonEnv ]; @@ -36,8 +38,14 @@ stdenv.mkDerivation { cp actions.py $out/bin/actions.py chmod +x $out/bin/server + cp grav1c.py $out/bin/client + chmod +x $out/bin/client + wrapProgram $out/bin/server \ - --prefix PATH : ${lib.makeBinPath [ ffmpeg libaom libvpx dav1d ]} + --prefix PATH : ${lib.makeBinPath [ ffmpeg libaom libvpx (dav1d.override { withTools = true;}) ]} + + wrapProgram $out/bin/client \ + --prefix PATH : ${lib.makeBinPath [ ffmpeg libaom libvpx (dav1d.override { withTools = true;}) ]} ''; }