Loading pkgs/tools/graphics/ueberzugpp/default.nix +2 −13 Original line number Diff line number Diff line Loading @@ -30,26 +30,15 @@ stdenv.mkDerivation rec { pname = "ueberzugpp"; version = "2.8.9"; version = "2.9.0"; src = fetchFromGitHub { owner = "jstkdng"; repo = "ueberzugpp"; rev = "v${version}"; hash = "sha256-RW2dKueidFM/RkGfOAorHukGVm1srbuAlyUP/r+JWi0="; hash = "sha256-n1cSHHPCx6igJmBxAbny7gntZQk4cMb358zx7f2lMi8="; }; # error: no member named 'ranges' in namespace 'std' postPatch = lib.optionalString withoutStdRanges '' for f in src/canvas/chafa.cpp src/canvas/iterm2/iterm2.cpp src/terminal.cpp; do sed -i "1i #include <range/v3/algorithm/for_each.hpp>" $f sed -i "2i #include <range/v3/algorithm/reverse.hpp>" $f substituteInPlace $f \ --replace "#include <ranges>" "" \ --replace "std::ranges" "ranges" done ''; strictDeps = true; nativeBuildInputs = [ Loading Loading
pkgs/tools/graphics/ueberzugpp/default.nix +2 −13 Original line number Diff line number Diff line Loading @@ -30,26 +30,15 @@ stdenv.mkDerivation rec { pname = "ueberzugpp"; version = "2.8.9"; version = "2.9.0"; src = fetchFromGitHub { owner = "jstkdng"; repo = "ueberzugpp"; rev = "v${version}"; hash = "sha256-RW2dKueidFM/RkGfOAorHukGVm1srbuAlyUP/r+JWi0="; hash = "sha256-n1cSHHPCx6igJmBxAbny7gntZQk4cMb358zx7f2lMi8="; }; # error: no member named 'ranges' in namespace 'std' postPatch = lib.optionalString withoutStdRanges '' for f in src/canvas/chafa.cpp src/canvas/iterm2/iterm2.cpp src/terminal.cpp; do sed -i "1i #include <range/v3/algorithm/for_each.hpp>" $f sed -i "2i #include <range/v3/algorithm/reverse.hpp>" $f substituteInPlace $f \ --replace "#include <ranges>" "" \ --replace "std::ranges" "ranges" done ''; strictDeps = true; nativeBuildInputs = [ Loading