1
0
Fork 0
piped-flake/packages/proxy/default.nix

27 lines
573 B
Nix

{
rustPlatform,
fetchFromGitHub,
nasm
}: let
meta = builtins.fromJSON (builtins.readFile ../../meta.json);
rev = meta.proxy.rev;
in
rustPlatform.buildRustPackage rec {
pname = "piped-proxy";
version = "latest-${rev}";
src = fetchFromGitHub {
owner = "TeamPiped";
repo = "piped-proxy";
inherit rev;
sha256 = "${meta.proxy.sha256}";
};
buildNoDefaultFeatures = true;
buildFeatures = [ "webp" "avif" ];
nativeBuildInputs = [ nasm ];
cargoLock = {lockFile = "${src}/Cargo.lock";};
doCheck = false;
}