nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 rustPlatform,
5 fetchFromGitHub,
6 pkg-config,
7 openssl,
8 libiconv,
9 nix-update-script,
10}:
11
12rustPlatform.buildRustPackage rec {
13 pname = "monolith";
14 version = "2.10.1";
15
16 src = fetchFromGitHub {
17 owner = "Y2Z";
18 repo = "monolith";
19 rev = "v${version}";
20 hash = "sha256-7D/r9/uY1JcShKgfNUGVTn8P5kUAwUIa/xBbhpReeNw=";
21 };
22
23 cargoHash = "sha256-rIwlNXe7me3Ehj1EIYiOYo12FQqovmZT0ui58gFRWWw=";
24
25 env.OPENSSL_NO_VENDOR = true;
26
27 nativeBuildInputs = [ pkg-config ];
28 buildInputs = [
29 openssl
30 ]
31 ++ lib.optionals stdenv.hostPlatform.isDarwin [
32 libiconv
33 ];
34
35 checkFlags = [ "--skip=tests::cli" ];
36
37 passthru.updateScript = nix-update-script { };
38
39 meta = {
40 description = "Bundle any web page into a single HTML file";
41 mainProgram = "monolith";
42 homepage = "https://github.com/Y2Z/monolith";
43 license = lib.licenses.cc0;
44 platforms = lib.platforms.unix;
45 };
46}