2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-08 13:40:42 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2020-05-25 05:23:23 +01:00
|
|
|
, Security
|
2020-04-08 13:40:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "monolith";
|
2021-01-20 05:19:53 +00:00
|
|
|
version = "2.4.0";
|
2020-04-08 13:40:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Y2Z";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-20 05:19:53 +00:00
|
|
|
sha256 = "sha256-kCyfVeGTXBzdwmTTDJM1eaR6ANoIXAydj1ePmrZehqE=";
|
2020-04-08 13:40:42 +01:00
|
|
|
};
|
|
|
|
|
2021-01-20 05:19:53 +00:00
|
|
|
cargoSha256 = "sha256-juxaL/zjfqzFMqZe9tpevdjjVU7fPK8zalksAARWHC8=";
|
2020-04-08 13:40:42 +01:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2020-04-08 13:40:42 +01:00
|
|
|
|
2020-05-25 05:23:23 +01:00
|
|
|
checkFlagsArray = [ "--skip=tests::cli" ];
|
2020-04-08 13:40:42 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-08 13:40:42 +01:00
|
|
|
description = "Bundle any web page into a single HTML file";
|
|
|
|
homepage = "https://github.com/Y2Z/monolith";
|
|
|
|
license = licenses.unlicense;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-08 13:40:42 +01:00
|
|
|
};
|
|
|
|
}
|