2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "monolith";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "2.2.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Y2Z";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "0w19szxzhwxbgnv4k618p8v29dhbar1fn433bsz1cr1apnrahmkn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
cargoSha256 = "06gc3cpx1m2f6fwrm8brw5nidg1v02q1qwqfxvv3xzmmczbw4345";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|