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

36 lines
869 B
Nix
Raw Normal View History

{ lib, stdenv
2020-04-08 13:40:42 +01:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2021-05-17 21:19:29 +01:00
, libiconv
2020-05-25 05:23:23 +01:00
, Security
2020-04-08 13:40:42 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "monolith";
2021-08-14 17:22:48 +01:00
version = "2.6.1";
2020-04-08 13:40:42 +01:00
src = fetchFromGitHub {
owner = "Y2Z";
repo = pname;
rev = "v${version}";
2021-08-14 17:22:48 +01:00
sha256 = "sha256-JhQkoVGJpMesNz2hRe+kWNX4zYrIcKzT0Z6owrXlRN4=";
2020-04-08 13:40:42 +01:00
};
2021-08-14 17:22:48 +01:00
cargoSha256 = "sha256-BikzJr50Aua9llyQgbP/paIoC7dvsG0RYyVXmbdeGIA=";
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 ]
2021-05-17 21:19:29 +01:00
++ lib.optionals stdenv.isDarwin [ libiconv 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 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;
maintainers = with maintainers; [ Br1ght0ne ];
2020-04-08 13:40:42 +01:00
};
}