nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 nodejs,
6 pnpm_8,
7 fetchPnpmDeps,
8 pnpmConfigHook,
9}:
10stdenv.mkDerivation rec {
11 pname = "it-tools";
12 version = "2024.10.22-7ca5933";
13
14 src = fetchFromGitHub {
15 owner = "CorentinTh";
16 repo = "it-tools";
17 rev = "v${version}";
18 hash = "sha256-SQAZv+9tINRH10lewcuv8G2qwfulLOP8sGjX47LxeUk=";
19 };
20
21 nativeBuildInputs = [
22 nodejs
23 pnpmConfigHook
24 pnpm_8
25 ];
26
27 pnpmDeps = fetchPnpmDeps {
28 inherit
29 pname
30 version
31 src
32 ;
33 pnpm = pnpm_8;
34 fetcherVersion = 1;
35 hash = "sha256-m1eXBE5rakcq8NGnPC9clAAvNJQrN5RuSQ94zfgGZxw=";
36 };
37
38 buildPhase = ''
39 runHook preBuild
40
41 pnpm build
42
43 runHook postBuild
44 '';
45
46 installPhase = ''
47 runHook preInstall
48
49 mkdir -p $out/lib
50 cp -R ./dist/* $out/lib/
51
52 runHook postInstall
53 '';
54
55 meta = {
56 description = "Self-hostable website containing handy tools for developers, with great UX";
57 homepage = "https://it-tools.tech/";
58 license = lib.licenses.gpl3Only;
59 maintainers = with lib.maintainers; [ akotro ];
60 };
61}