From 32a1b56a7435c49650d4461eea854b6bfae3b09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Apr 2022 14:43:51 +0200 Subject: [PATCH 1/2] vapoursynth: reduce with usage --- pkgs/development/libraries/vapoursynth/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index b78db1673168..6abc58494da6 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -4,8 +4,6 @@ , ApplicationServices }: -with lib; - stdenv.mkDerivation rec { pname = "vapoursynth"; version = "R58"; @@ -25,7 +23,7 @@ stdenv.mkDerivation rec { buildInputs = [ zimg libass (python3.withPackages (ps: with ps; [ sphinx cython ])) - ] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ]; + ] ++ lib.optionals stdenv.isDarwin [ libiconv ApplicationServices ]; enableParallelBuilding = true; @@ -58,5 +56,4 @@ stdenv.mkDerivation rec { platforms = platforms.x86_64; maintainers = with maintainers; [ rnhmjoj sbruder tadeokondrak ]; }; - } From 67db991f17d459a81f2e312233c6af0394e45b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Apr 2022 14:44:04 +0200 Subject: [PATCH 2/2] vapoursynth: fix nix search version parsing --- pkgs/development/libraries/vapoursynth/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index 6abc58494da6..0d990b983635 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -6,12 +6,12 @@ stdenv.mkDerivation rec { pname = "vapoursynth"; - version = "R58"; + version = "58"; src = fetchFromGitHub { owner = "vapoursynth"; repo = "vapoursynth"; - rev = version; + rev = "R${version}"; sha256 = "sha256-LIjNfyfpyvE+Ec6f4aGzRA4ZGoWPFhjtUw4yrenDsUQ="; };