2020-04-08 14:40:42 +02:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2020-05-25 06:23:23 +02:00
|
|
|
, Security
|
2020-04-08 14:40:42 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "monolith";
|
2020-08-06 16:56:49 +02:00
|
|
|
version = "2.3.1";
|
2020-04-08 14:40:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Y2Z";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-06 16:56:49 +02:00
|
|
|
sha256 = "16k5mp64a5l063rdj65hbpx414xv0bqdvhvz49k8018f2a2jj5xl";
|
2020-04-08 14:40:42 +02:00
|
|
|
};
|
|
|
|
|
2020-08-06 16:56:49 +02:00
|
|
|
cargoSha256 = "0s5mv8mymycz4ga4zh9kbrhwmhgl4j01pw1sdzxy49l9waryk9p3";
|
2020-04-08 14:40:42 +02:00
|
|
|
|
2020-05-25 06:23:23 +02:00
|
|
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
2020-04-08 14:40:42 +02:00
|
|
|
|
2020-05-25 06:23:23 +02:00
|
|
|
checkFlagsArray = [ "--skip=tests::cli" ];
|
2020-04-08 14:40:42 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Bundle any web page into a single HTML file";
|
|
|
|
homepage = "https://github.com/Y2Z/monolith";
|
|
|
|
license = licenses.unlicense;
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-08 14:40:42 +02:00
|
|
|
};
|
|
|
|
}
|