pkgs/it-tools: init
This commit is contained in:
parent
1a24a8a7ad
commit
a4351f8edf
2 changed files with 45 additions and 0 deletions
|
@ -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
44
pkgs/it-tools.nix
Normal 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=";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue