forked from dan/liminix
new package fetch-freebsd: small http(s) client library
[*] smaller than curl, maybe not maximally small
This commit is contained in:
parent
eb79928b37
commit
64cd1626c6
@ -54,6 +54,7 @@ in {
|
||||
|
||||
anoia = callPackage ./anoia { };
|
||||
devout = callPackage ./devout { };
|
||||
fetch-freebsd = callPackage ./fetch-freebsd { };
|
||||
fennel = callPackage ./fennel { };
|
||||
fennelrepl = callPackage ./fennelrepl { };
|
||||
firewallgen = callPackage ./firewallgen { };
|
||||
|
25
pkgs/fetch-freebsd/default.nix
Normal file
25
pkgs/fetch-freebsd/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
cmake,
|
||||
stdenv,
|
||||
openssl,
|
||||
fetchFromGitHub
|
||||
}: stdenv.mkDerivation {
|
||||
pname = "fetch-freebsd";
|
||||
version = "v12.0.11";
|
||||
src = fetchFromGitHub {
|
||||
owner= "jrmarino";
|
||||
repo = "fetch-freebsd";
|
||||
rev = "v12.0.11";
|
||||
hash = "sha256-nLNqjQFV9x2NntBdUlabxjS9q+er28zi8uXjWvCK2Ps=";
|
||||
};
|
||||
cmakeFlags = [
|
||||
"-DFETCH_PROGRAM=OFF"
|
||||
"-DFETCH_LIBRARY=ON"
|
||||
"-DUSE_SYSTEM_SSL=ON"
|
||||
];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ openssl ];
|
||||
postInstall = ''
|
||||
rm -r $out/lib/lib*.a
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user