lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cygwin: libatomic_ops: add missing interlibrary dep

authored by

Marko Durkovic and committed by
Rok Garbas
e45745f1 c4efe32d

+12 -5
+12 -5
pkgs/development/libraries/libatomic_ops/default.nix
··· 1 - {stdenv, fetchurl}: 1 + { stdenv, fetchurl, autoconf, automake, libtool }: 2 2 let 3 3 s = # Generated upstream information 4 4 rec { ··· 9 9 url="http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.2.tar.gz"; 10 10 sha256="1pdm0h1y7bgkczr8byg20r6bq15m5072cqm5pny4f9crc9gn3yh4"; 11 11 }; 12 - buildInputs = [ 13 - ]; 14 - in 15 - stdenv.mkDerivation { 12 + 13 + buildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ]; 14 + 15 + in stdenv.mkDerivation { 16 16 inherit (s) name version; 17 17 inherit buildInputs; 18 + 18 19 src = fetchurl { 19 20 inherit (s) url sha256; 20 21 }; 22 + 23 + preConfigure = if stdenv.isCygwin then '' 24 + sed -i -e "/libatomic_ops_gpl_la_SOURCES/a libatomic_ops_gpl_la_LIBADD = libatomic_ops.la" src/Makefile.am 25 + ./autogen.sh 26 + '' else null; 27 + 21 28 meta = { 22 29 inherit (s) version; 23 30 description = ''A library for semi-portable access to hardware-provided atomic memory update operations'';