File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55* .so
66.vscode /
77build * /
8+ result
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments