nixpkgs/pkgs/tools/backup/monolith/default.nix

33 lines
739 B
Nix
Raw Normal View History

2020-04-08 12:40:42 +00:00
{ stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "monolith";
2020-05-25 00:08:48 +00:00
version = "2.2.6";
2020-04-08 12:40:42 +00:00
src = fetchFromGitHub {
owner = "Y2Z";
repo = pname;
rev = "v${version}";
2020-05-25 00:08:48 +00:00
sha256 = "0ifv1h16xrs40gw5wx7kwj7hirnzpgfrznskz2igsslk7ycjlbr1";
2020-04-08 12:40:42 +00:00
};
2020-05-25 00:08:48 +00:00
cargoSha256 = "1plx9p265jcc6wg3bhcdk1f77md8ann08kkv3g2706d82kxy2c1i";
2020-04-08 12:40:42 +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 ];
};
}