/ package.nix
package.nix
 1  {
 2    lib,
 3    rustPlatform,
 4    cmake,
 5    openssl,
 6    pkg-config,
 7  }:
 8  
 9  rustPlatform.buildRustPackage (finalAttrs: {
10    pname = "pxls-proxy";
11    version = "0.1.0";
12  
13    src = ./.;
14  
15    cargoLock = {
16      lockFile = ./Cargo.lock;
17    };
18  
19    nativeBuildInputs = [
20      cmake # for libz-ng-sys
21      pkg-config
22    ];
23  
24    buildInputs = [
25      openssl
26    ];
27  
28    env.OPENSSL_NO_VENDOR = 1;
29  
30    meta = {
31      description = "Reverse proxy for alternative Pxls frontends";
32      homepage = "https://github.com/shuni64/pxls-proxy";
33      license = lib.licenses.unlicense;
34      maintainers = [ ];
35    };
36  })