Skip to content

Commit

Permalink
zxing-cpp: 2.2.1 -> 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
momeemt committed Jan 12, 2025
1 parent b15506c commit 3a7abb3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pkgs/by-name/zx/zxing-cpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@

stdenv.mkDerivation (finalAttrs: {
pname = "zxing-cpp";
version = "2.2.1";
version = "2.3.0";

src = fetchFromGitHub {
owner = "zxing-cpp";
repo = "zxing-cpp";
rev = "v${finalAttrs.version}";
hash = "sha256-teFspdATn9M7Z1vSr/7PdJx/xAv+TVai8rIekxqpBZk=";
tag = "v${finalAttrs.version}";
hash = "sha256-e3nSxjg8p+1DEUbZOh4C2zfnA6iGhNJMPiIe2oJEbRo=";
};

# c++ 20 needed for char8_t or clang-19 build fails
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "CMAKE_CXX_STANDARD 17" "CMAKE_CXX_STANDARD 20"
'';

nativeBuildInputs = [
cmake
pkg-config
Expand Down

0 comments on commit 3a7abb3

Please sign in to comment.