<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><a href="https://github.com/NixOS/nixpkgs/pull/67629" class="">https://github.com/NixOS/nixpkgs/pull/67629</a><div class=""><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Dominic Steinitz</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="http://idontgetoutmuch.org" class="">http://idontgetoutmuch.org</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Twitter: @idontgetoutmuch</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<div style=""><br class=""><blockquote type="cite" class=""><div class="">On 28 Aug 2019, at 15:17, Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" class="">lemming@henning-thielemann.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">On Wed, 28 Aug 2019, <a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a> wrote:<br class=""><br class=""><blockquote type="cite" class="">I thought I would broaden out the discussion Henning and I have been having.<br class="">I have managed to get <a href="http://hackage.haskell.org/package/blas-ffi" class="">http://hackage.haskell.org/package/blas-ffi</a> to build under nix. Ideally we would like<br class="">cabal2nix to do this automatically for us. We can do this if<br class=""><br class=""> 1. We use openblas rather than blas.<br class=""></blockquote><br class="">I suggest this anyway.<br class=""><br class=""><blockquote type="cite" class=""> 2. Replace `PkgConfig-Depends: blas` with `PkgConfig-Depends: lapack (as the lapack derivation in nix generates<br class=""> a blas.pc) in the cabal file.<br class=""></blockquote><br class="">This sounds like a hack. blas-ffi depends only on the BLAS library and thus should need blas.pc only. OpenBLAS has its own blas.pc and otherwise plain BLAS library should provide blas.pc. In Debian you can even install both of them and select between them using Debian's alternatives system.<br class=""><br class=""><blockquote type="cite" class=""> 3. Fix nix to generate .pc files for blas - I don’t know the consequences of doing this but I can’t see any<br class=""> downside.<br class=""></blockquote><br class="">This should be the right way.</div></div></blockquote></div><br class=""></div></body></html>