Skip to content

Commit

Permalink
wikit: init at 4.4-unstable-2022-10-17
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Nov 26, 2024
1 parent 6167355 commit 23a454b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/by-name/wi/wikit/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnInstallHook,
nodejs,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wikit";
version = "4.4-unstable-2022-10-17";

src = fetchFromGitHub {
owner = "KorySchneider";
repo = "wikit";
rev = "6432c6020606868cc5f240d0317040e38b992292";
hash = "sha256-WCKLqxNtO+iECfBzQwMn31Pcz/cGWMihTvoHPaQAmak=";
};

offlineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-UAqMpb7zM/oVxE6gNkjk6IUoufATc0q2TM10P/A1Rqs=";
};

nativeBuildInputs = [
yarnConfigHook
yarnInstallHook
nodejs
installShellFiles
];

postInstall = ''
installManPage ${finalAttrs.src}/data/wikit.1
'';

meta = {
description = "Wikit gives Wikipedia summaries from the terminal";
homepage = "https://github.com/KorySchneider/wikit";
changelog = "https://github.com/KorySchneider/wikit/releases";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ theobori ];
mainProgram = "wikit";
};
})

0 comments on commit 23a454b

Please sign in to comment.