1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/libraries/libatomic_ops/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, autoconf, automake, libtool }:
2014-06-27 13:02:29 +01:00
let
s = # Generated upstream information
rec {
baseName="libatomic_ops";
2016-08-11 08:44:16 +01:00
version="7.4.4";
2014-06-27 13:02:29 +01:00
name="${baseName}-${version}";
2016-08-11 08:44:16 +01:00
hash="13vg5fqwil17zpf4hj4h8rh3blzmym693lkdjgvwpgni1mh0l8dz";
url="http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.4.tar.gz";
sha256="13vg5fqwil17zpf4hj4h8rh3blzmym693lkdjgvwpgni1mh0l8dz";
2014-06-27 13:02:29 +01:00
};
buildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
in stdenv.mkDerivation {
2014-06-27 13:02:29 +01:00
inherit (s) name version;
inherit buildInputs;
2014-06-27 13:02:29 +01:00
src = fetchurl {
inherit (s) url sha256;
};
preConfigure = if stdenv.isCygwin then ''
sed -i -e "/libatomic_ops_gpl_la_SOURCES/a libatomic_ops_gpl_la_LIBADD = libatomic_ops.la" src/Makefile.am
./autogen.sh
'' else null;
2014-06-27 13:02:29 +01:00
meta = {
inherit (s) version;
description = ''A library for semi-portable access to hardware-provided atomic memory update operations'';
license = stdenv.lib.licenses.gpl2Plus ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.unix;
2014-06-27 13:02:29 +01:00
};
}