mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 13:31:36 +03:00
18 lines
332 B
Nix
18 lines
332 B
Nix
|
{ stdenv, sources }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "murmur3";
|
||
|
version = sources.murmur3.rev;
|
||
|
src = sources.murmur3;
|
||
|
|
||
|
buildPhase = ''
|
||
|
$CC -fPIC -O3 -o murmur3.o -c $src/murmur3.c
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/{lib,include}
|
||
|
$AR rcs $out/lib/libmurmur3.a murmur3.o
|
||
|
cp $src/*.h $out/include/
|
||
|
'';
|
||
|
}
|