blob: a8a497d46d73c5d115706e9f273c0ec1a7921432 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ stdenv }:
stdenv.mkDerivation {
name = "libredirect-0";
unpackPhase = "cp ${./libredirect.c} libredirect.c";
buildPhase =
''
gcc -Wall -std=c99 -O3 -shared libredirect.c -o libredirect.so -fPIC -ldl
'';
installPhase = "mkdir -p $out/lib; cp libredirect.so $out/lib";
}
|