2025-07-26 11:39:35 +02:00

48 lines
1.1 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
libiconv,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "monolith";
version = "2.10.1";
src = fetchFromGitHub {
owner = "Y2Z";
repo = "monolith";
rev = "v${version}";
hash = "sha256-7D/r9/uY1JcShKgfNUGVTn8P5kUAwUIa/xBbhpReeNw=";
};
cargoHash = "sha256-rIwlNXe7me3Ehj1EIYiOYo12FQqovmZT0ui58gFRWWw=";
OPENSSL_NO_VENDOR = true;
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
checkFlags = [ "--skip=tests::cli" ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Bundle any web page into a single HTML file";
mainProgram = "monolith";
homepage = "https://github.com/Y2Z/monolith";
license = licenses.cc0;
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
maintainers = with maintainers; [ Br1ght0ne ];
};
}