Unverified Commit e03305d3 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

iwe: init at 0.0.17 (#379477)

parents 4d232a3a dde19949
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18192,6 +18192,12 @@
    githubId = 301903;
    name = "Chip Collier";
  };
  phrmendes = {
    name = "Pedro Mendes";
    email = "pedrohrmendes@proton.me";
    github = "phrmendes";
    githubId = 22376151;
  };
  phrogg = {
    name = "Phil Roggenbuck";
    email = "nixpkgs@phrogg.de";
+40 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  versionCheckHook,
  nix-update-script,
}:
rustPlatform.buildRustPackage rec {
  pname = "iwe";
  version = "0.0.17";

  src = fetchFromGitHub {
    owner = "iwe-org";
    repo = "iwe";
    tag = "iwe-v${version}";
    hash = "sha256-eE84KzYJTJ39UDQt3VZpSIba/P+7VFR9K6+MSMlg0Wc=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-K8RxVYHh0pStQyHMiLLeUakAoK1IMoUtCNg70/NfDiI=";

  cargoBuildFlags = [
    "--package=iwe"
    "--package=iwes"
  ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Personal knowledge management system (editor plugin & command line utility)";
    homepage = "https://iwe.md/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ phrmendes ];
    mainProgram = "iwe";
  };
}