Unverified Commit 058cc7cb authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

norgolith: init at 0.3.1 (#483351)

parents 53cb088b 355aa1c2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14540,6 +14540,12 @@
    github = "juuyokka";
    githubId = 15185244;
  };
  Ladas552 = {
    email = "l.tokshalov@gmail.com";
    github = "Ladas552";
    githubId = 94762349;
    name = "Ladas552";
  };
  lafrenierejm = {
    email = "joseph@lafreniere.xyz";
    github = "lafrenierejm";
+51 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  libgit2,
  openssl,
  zlib,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "norgolith";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "NTBBloodbath";
    repo = "norgolith";
    tag = "v${finalAttrs.version}";
    hash = "sha256-n9Obf2PoTQ8EyxF/i5YU9/AlN9IizWYW/sG89Z8qp1k=";
  };

  cargoHash = "sha256-1DOys3N42jlC/tc5D0Ixg+yXV/RRMIi4qcXzUwpl7XQ=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    libgit2
    openssl
    zlib
  ];

  useNextest = true;

  env = {
    LIBGIT2_NO_VENDOR = true;
    OPENSSL_NO_VENDOR = true;
  };

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "The monolithic Norg static site generator built with Rust";
    homepage = "https://norgolith.amartin.beer";
    changelog = "https://github.com/NTBBloodbath/norgolith/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ Ladas552 ];
    mainProgram = "lith";
  };
})