Unverified Commit 820005c7 authored by isabel's avatar isabel Committed by GitHub
Browse files

ergogen: init at 4.1.0 (#393730)

parents f76bb661 4f5e1525
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -25065,6 +25065,12 @@
    github = "TyberiusPrime";
    githubId = 1257580;
  };
  Tygo-van-den-Hurk = {
    name = "Tygo van den Hurk";
    github = "Tygo-van-den-Hurk";
    githubId = 91738110;
    keys = [ { fingerprint = "1AAE 628A 2D49 0597 17AE  A7F8 7CA2 CBB2 7505 8A44"; } ];
  };
  tylerjl = {
    email = "tyler+nixpkgs@langlois.to";
    github = "tylerjl";
+41 −0
Original line number Diff line number Diff line
{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  versionCheckHook,
  nix-update-script,
}:

buildNpmPackage (finalAttrs: {
  pname = "ergogen";
  version = "4.1.0";

  forceGitDeps = true;

  src = fetchFromGitHub {
    owner = "ergogen";
    repo = "ergogen";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Y4Ri5nLxbQ78LvyGARPxsvoZ9gSMxY14QuxZJg6Cu3Y=";
  };

  npmDepsHash = "sha256-BQbf/2lWLYnrSjwWjDo6QceFyR+J/vhDcVgCaytGfl0=";

  makeCacheWritable = true;
  dontNpmBuild = true;
  npmPackFlags = [ "--ignore-scripts" ];
  NODE_OPTIONS = "--openssl-legacy-provider";

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

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

  meta = {
    description = "Ergonomic keyboard layout generator.";
    homepage = "https://ergogen.xyz";
    mainProgram = "ergogen";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ Tygo-van-den-Hurk ];
  };
})