libcpuid: 0.2.2 -> 0.4.0
This commit is contained in:
parent
0227471cc9
commit
fe9c7ad83f
@ -1,5 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchgit
|
, fetchFromGitHub
|
||||||
, libtool
|
, libtool
|
||||||
, automake
|
, automake
|
||||||
, autoconf
|
, autoconf
|
||||||
@ -7,18 +7,19 @@
|
|||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libcpuid-${version}";
|
name = "libcpuid-${version}";
|
||||||
version = "0.2.2";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = https://github.com/anrieff/libcpuid.git;
|
owner = "anrieff";
|
||||||
rev = "535ec64dd9d8df4c5a8d34b985280b58a5396fcf";
|
repo = "libcpuid";
|
||||||
sha256 = "1j9pg7fyvqhr859k5yh8ccl9jjx65c7rrsddji83qmqyg0vp1k1a";
|
rev = "v${version}";
|
||||||
|
sha256 = "136kv6m666f7s18mim0vdbzqvs4s0wvixa12brj9p3kmfbx48bw7";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
libtoolize
|
libtoolize
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
mkdir -p Install
|
mkdir -p Install
|
||||||
@ -45,12 +46,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
sed -i -re "s#(prefix=).*Install#\1$out#g" Install/lib/pkgconfig/libcpuid.pc
|
sed -i -re "s#(prefix=).*Install#\1$out#g" Install/lib/pkgconfig/libcpuid.pc
|
||||||
|
|
||||||
cp -r Install/* $out
|
cp -r Install/* $out
|
||||||
cp -r tests $out
|
cp -r tests $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [
|
||||||
libtool
|
libtool
|
||||||
automake
|
automake
|
||||||
autoconf
|
autoconf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user