Files
nixpkgs/pkgs/by-name/it/it-tools/package.nix
2026-06-08 13:07:46 +03:00

62 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
nodejs,
pnpm_11,
fetchPnpmDeps,
pnpmConfigHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "it-tools";
version = "0-unstable-2026-02-12";
src = fetchFromGitHub {
owner = "CorentinTh";
repo = "it-tools";
rev = "d505845f918e946ec300af7b36efc107e2f66e9e";
hash = "sha256-dWVRiLbJ1X4yHT5yRcq+KaHmjjtc24yQg0jQvWTPNwU=";
};
nativeBuildInputs = [
nodejs
pnpmConfigHook
pnpm_11
];
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs)
pname
version
src
;
pnpm = pnpm_11;
fetcherVersion = 4;
hash = "sha256-ju8YO0IHIGJtCi5TnxvfLUXcTqKWnTBKAGFBhzQJTok=";
};
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp -R ./dist/* $out/lib/
runHook postInstall
'';
meta = {
description = "Self-hostable website containing handy tools for developers, with great UX";
homepage = "https://it-tools.tech/";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ akotro ];
};
})