libatomic_ops: Cleanup
This commit is contained in:
parent
fbea1265d5
commit
54e0607630
@ -1,32 +1,22 @@
|
|||||||
{ stdenv, fetchurl, autoconf, automake, libtool }:
|
{ stdenv, fetchurl, autoconf, automake, libtool }:
|
||||||
let
|
|
||||||
s = # Generated upstream information
|
|
||||||
rec {
|
|
||||||
baseName="libatomic_ops";
|
|
||||||
version="7.4.4";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
hash="13vg5fqwil17zpf4hj4h8rh3blzmym693lkdjgvwpgni1mh0l8dz";
|
|
||||||
url="http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.4.tar.gz";
|
|
||||||
sha256="13vg5fqwil17zpf4hj4h8rh3blzmym693lkdjgvwpgni1mh0l8dz";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
|
stdenv.mkDerivation rec {
|
||||||
|
name = "libatomic_ops-${version}";
|
||||||
in stdenv.mkDerivation {
|
version = "7.4.4";
|
||||||
inherit (s) name version;
|
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
url = "http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${version}.tar.gz";
|
||||||
|
sha256 ="13vg5fqwil17zpf4hj4h8rh3blzmym693lkdjgvwpgni1mh0l8dz";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = if stdenv.isCygwin then ''
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
|
||||||
|
|
||||||
|
preConfigure = stdenv.lib.optionalString stdenv.isCygwin ''
|
||||||
sed -i -e "/libatomic_ops_gpl_la_SOURCES/a libatomic_ops_gpl_la_LIBADD = libatomic_ops.la" src/Makefile.am
|
sed -i -e "/libatomic_ops_gpl_la_SOURCES/a libatomic_ops_gpl_la_LIBADD = libatomic_ops.la" src/Makefile.am
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
'' else null;
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (s) version;
|
|
||||||
description = ''A library for semi-portable access to hardware-provided atomic memory update operations'';
|
description = ''A library for semi-portable access to hardware-provided atomic memory update operations'';
|
||||||
license = stdenv.lib.licenses.gpl2Plus ;
|
license = stdenv.lib.licenses.gpl2Plus ;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user