3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/monolith/default.nix

35 lines
874 B
Nix
Raw Normal View History

2020-04-08 13:40:42 +01:00
{ stdenv
, 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";
2020-05-25 01:08:48 +01:00
version = "2.2.6";
2020-04-08 13:40:42 +01:00
src = fetchFromGitHub {
owner = "Y2Z";
repo = pname;
rev = "v${version}";
2020-05-25 01:08:48 +01:00
sha256 = "0ifv1h16xrs40gw5wx7kwj7hirnzpgfrznskz2igsslk7ycjlbr1";
2020-04-08 13:40:42 +01:00
};
2020-05-25 01:08:48 +01:00
cargoSha256 = "1plx9p265jcc6wg3bhcdk1f77md8ann08kkv3g2706d82kxy2c1i";
2020-04-08 13:40:42 +01:00
2020-05-25 05:23:23 +01: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 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
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 ];
};
}