mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
e3244e9ff0
The xxxFlagsArray variants were never meant to be used in nix code, at least they can't be used properly without __structuredAttrs turned on. If no spaces are passed in the argument the xxxFlagsArray can be replaced as-is with the non-Array variant. When whitespace needs to be passed, the derivation is additionally changed to enable __structuredAttrs.
37 lines
934 B
Nix
37 lines
934 B
Nix
{ lib, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, libiconv
|
|
, Security
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "monolith";
|
|
version = "2.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Y2Z";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qMB4Tok0tYAqj8r9LEkjhBV5ko+hwagFS7MsL8AYJnc=";
|
|
};
|
|
|
|
cargoHash = "sha256-FeD0+s79orFDUVsb205W0pdXgDI+p1UrH3GIfKwUqDQ=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];
|
|
|
|
checkFlags = [ "--skip=tests::cli" ];
|
|
|
|
meta = with lib; {
|
|
description = "Bundle any web page into a single HTML file";
|
|
mainProgram = "monolith";
|
|
homepage = "https://github.com/Y2Z/monolith";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
|
};
|
|
}
|