git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #28949 from pbogdan/allegro-fix-build

allegro: fix sandboxed build with nixUnstable

commit8f154c139a4b552e01e30a259441621b415644ef authorMichael Raskin <7c6f434c@mail.ru> dateMon 4 Sep 2017, 07:39 (9 years ago) parentebce795e22a772
2 files changed+17
pkgs/development/libraries/allegro/default.nix+4 pkgs/development/libraries/allegro/nix-unstable-sandbox-fix.patch+13
pkgs/development/libraries/allegro/default.nix+4
@@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
1212 sha256 = "1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v";
1313 };
1414
15+ patches = [
16+ ./nix-unstable-sandbox-fix.patch
17+ ];
18+
1519 buildInputs = [
1620 texinfo libXext xextproto libX11 xproto libXpm libXt libXcursor
1721 alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
pkgs/development/libraries/allegro/nix-unstable-sandbox-fix.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
2+index 32ed053..73ba87f 100644
3+--- a/docs/CMakeLists.txt
4++++ b/docs/CMakeLists.txt
5+@@ -72,7 +72,7 @@ foreach(page ${DOC_SRCS})
6+ string(REPLACE "._tx" "" basename ${basename})
7+
8+ set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
9+- if(${page} MATCHES "/build/")
10++ if(${page} MATCHES ".+/build/")
11+ set(txt_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.txt)
12+ set(html_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.html)
13+ else()