1 Nix package · Hyperboid/lua-https@abeec92 · GitHub
Skip to content

Commit abeec92

Browse files
committed
Nix package
1 parent 5b6ecab commit abeec92

3 files changed

Lines changed: 107 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
*.so
66
.vscode/
77
build*/
8+
result

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
description = "A simple Lua HTTPS module using native platform backends where applicable.";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = {
10+
self,
11+
nixpkgs,
12+
flake-utils,
13+
...
14+
}:
15+
flake-utils.lib.eachDefaultSystem (
16+
system: let
17+
pkgs = nixpkgs.legacyPackages.${system};
18+
stdenv = pkgs.stdenv;
19+
lib = pkgs.lib;
20+
luaHttpsPackage = stdenv.mkDerivation {
21+
name = "lua-https";
22+
# version = "0.0.0";
23+
src = ./.;
24+
nativeBuildInputs = with pkgs; [ cmake ];
25+
buildInputs = with pkgs; [
26+
lua curl
27+
];
28+
cmakeFlags = [
29+
"-DCMAKE_BUILD_TYPE=Release"
30+
];
31+
makeTarget = "install";
32+
meta = {
33+
description = "A simple Lua HTTPS module using native platform backends where applicable.";
34+
license = lib.licenses.zlib;
35+
maintainers = [ ];
36+
};
37+
};
38+
in {
39+
packages = {
40+
default = luaHttpsPackage;
41+
lua-https = luaHttpsPackage;
42+
};
43+
}
44+
);
45+
}

0 commit comments

Comments
 (0)