{ description = "httproxide"; inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/master"; outputs = { self, nixpkgs, flake-utils }: { overlays.default = final: prev: { httproxide = final.callPackage ( { lib, stdenv, rustPlatform }: rustPlatform.buildRustPackage { pname = "httproxide"; version = self.shortRev or "dirty-${toString self.lastModifiedDate}"; src = self; cargoBuildFlags = lib.optionals (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isStatic) [ "--features" "mimalloc" ]; cargoLock = { lockFile = ./Cargo.lock; allowBuiltinFetchGit = true; }; } ) { }; }; } // flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; }; in rec { packages = { inherit (pkgs) httproxide; default = packages.httproxide; }; legacyPackages = pkgs; }); }