mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
35 lines
849 B
Nix
35 lines
849 B
Nix
{ lib, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "monolith";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Y2Z";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kCyfVeGTXBzdwmTTDJM1eaR6ANoIXAydj1ePmrZehqE=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-juxaL/zjfqzFMqZe9tpevdjjVU7fPK8zalksAARWHC8=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
checkFlagsArray = [ "--skip=tests::cli" ];
|
|
|
|
meta = with lib; {
|
|
description = "Bundle any web page into a single HTML file";
|
|
homepage = "https://github.com/Y2Z/monolith";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
|
};
|
|
}
|