pkgs/it-tools: init

This commit is contained in:
Infinidoge 2025-02-15 20:50:06 -05:00
parent 1a24a8a7ad
commit a4351f8edf
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 45 additions and 0 deletions

View file

@ -4,6 +4,7 @@ rec {
ears-cli = pkgs.callPackage ./ears-cli.nix { };
fw-ectool = pkgs.callPackage ./fw-ectool.nix { };
hexagon = pkgs.callPackage ./hexagon.nix { };
it-tools = pkgs.callPackage ./it-tools.nix { };
jupyterlab-myst = pkgs.python3Packages.callPackage ./jupyterlab-myst { };
jupyterlab-vim = pkgs.python3Packages.callPackage ./jupyterlab-vim { };
mcaselector = pkgs.callPackage ./mcaselector.nix { };

44
pkgs/it-tools.nix Normal file
View file

@ -0,0 +1,44 @@
{
stdenvNoCC,
fetchFromGitHub,
nodejs,
pnpm_9,
}:
let
pnpm = pnpm_9;
in
stdenvNoCC.mkDerivation rec {
pname = "it-tools";
version = "0-unstable-2024-12-14";
src = fetchFromGitHub {
owner = "CorentinTh";
repo = "it-tools";
rev = "08d977b8cdb7ffb76adfa18ba6eb4b73795ec814";
hash = "sha256-Zfw3eoyfxIcyjcIJYpPN8RScFmvFBu8KDiqcahUwVjw=";
};
nativeBuildInputs = [
nodejs
pnpm.configHook
];
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -r dist/* $out/share/
runHook postInstall
'';
pnpmDeps = pnpm.fetchDeps {
inherit pname version src;
hash = "sha256-cYx9nafA/GbCGIC5Ofqu6T8F2d1UDcK+0jzZR81dS/0=";
};
}