depot/third_party/nixpkgs/pkgs/tools/backup/monolith/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

32 lines
739 B
Nix

{ stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "monolith";
version = "2.2.5";
src = fetchFromGitHub {
owner = "Y2Z";
repo = pname;
rev = "v${version}";
sha256 = "0w19szxzhwxbgnv4k618p8v29dhbar1fn433bsz1cr1apnrahmkn";
};
cargoSha256 = "06gc3cpx1m2f6fwrm8brw5nidg1v02q1qwqfxvv3xzmmczbw4345";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
checkPhase = "cargo test -- --skip tests::cli";
meta = with stdenv.lib; {
description = "Bundle any web page into a single HTML file";
homepage = "https://github.com/Y2Z/monolith";
license = licenses.unlicense;
maintainers = with maintainers; [ filalex77 ];
};
}