Skip to content

Instantly share code, notes, and snippets.

@srhb
Created March 18, 2019 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srhb/43687ce599ebb3cf2caa499d0c1310d2 to your computer and use it in GitHub Desktop.
Save srhb/43687ce599ebb3cf2caa499d0c1310d2 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
nginx = pkgs.pkgsCross.musl64.nginx.overrideAttrs (oa: {
dontDisableStatic = true;
disableShared = true;
postFixup = "${pkgs.upx}/bin/upx $out/bin/nginx";
});
in
nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment