git.iko.soy/typeable/nixpkgs
on master help sign in
arc_unpacker: fix build
commit59ceb1926aac428b203ba9b384cf058fc24a2c85 authorFelix Rath <felixm.rath@gmail.com> dateSat 15 May 2021, 13:15 (6 years ago) parent3675e4b
2 files changed+29
pkgs/tools/archivers/arc_unpacker/add-missing-import.patch+22 pkgs/tools/archivers/arc_unpacker/default.nix+7
pkgs/tools/archivers/arc_unpacker/add-missing-import.patchnew file+22
@@ -0,0 +1,22 @@
1+From 29c0b393283395c69ecdd747e960301e95c93bcf Mon Sep 17 00:00:00 2001
2+From: Felix Rath <felixm.rath@gmail.com>
3+Date: Sat, 15 May 2021 13:07:38 +0200
4+Subject: [PATCH] add missing <stdexcept> import
5+
6+`std::logic_error` is used in this file, which resides in `<stdexcept>`, but was not imported before. This caused the build to fail, see, e.g., https://hydra.nixos.org/build/141997371/log.
7+---
8+ src/algo/crypt/lcg.cc | 1 +
9+ 1 file changed, 1 insertion(+)
10+
11+diff --git a/src/algo/crypt/lcg.cc b/src/algo/crypt/lcg.cc
12+index 6c2a7945..66630a08 100644
13+--- a/src/algo/crypt/lcg.cc
14++++ b/src/algo/crypt/lcg.cc
15+@@ -17,6 +17,7 @@
16+
17+ #include "algo/crypt/lcg.h"
18+ #include <functional>
19++#include <stdexcept>
20+
21+ using namespace au;
22+ using namespace au::algo::crypt;
pkgs/tools/archivers/arc_unpacker/default.nix+7
@@ -18,6 +18,13 @@ stdenv.mkDerivation rec {
1818 nativeBuildInputs = [ cmake makeWrapper catch ];
1919 buildInputs = [ boost libpng libjpeg zlib openssl libwebp ];
2020
21+ patches = [
22+ # Add a missing `<stdexcept>` import that caused the build to fail.
23+ # Failure: https://hydra.nixos.org/build/141997371/log
24+ # Also submitted as an upstream PR: https://github.com/vn-tools/arc_unpacker/pull/194
25+ ./add-missing-import.patch
26+ ];
27+
2128 postPatch = ''
2229 cp ${catch}/include/catch/catch.hpp tests/test_support/catch.h
2330 '';