aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-22 19:48:31 +0000
committerAkshay <[email protected]>2024-11-22 19:48:31 +0000
commit622c5fee25e7d86914d343ca3f873dc4bd55ffad (patch)
tree6543c2ef3499eecee3842f433599aaae6c4c2f14 /flake.nix
parent3551ff7a202ad60362888888c42f88b37e32fc59 (diff)
rework invite and admins a bit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 1 insertions, 27 deletions
diff --git a/flake.nix b/flake.nix
index a3db456..4f6b0dc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -42,32 +42,6 @@
42 outputHashAlgo = "sha256"; 42 outputHashAlgo = "sha256";
43 outputHashMode = "recursive"; 43 outputHashMode = "recursive";
44 }; 44 };
45 readit-gen-invite = with final;
46 stdenv.mkDerivation {
47 pname = "readit-gen-invite";
48 version = "0.0.1";
49 src = ./scripts;
50 nativeBuildInputs = [makeBinaryWrapper];
51 buildInputs = [bun];
52
53 buildPhase = ''
54 runHook preBuild
55 runHook postBuild
56 '';
57
58 dontFixup = true;
59
60 installPhase = ''
61 runHook preInstall
62
63 mkdir -p $out/bin
64 cp -R ./* $out
65
66 makeBinaryWrapper ${bun}/bin/bun $out/bin/$pname \
67 --prefix PATH : ${lib.makeBinPath [bun]} \
68 --add-flags "run --prefer-offline --no-install $out/gen-invite.js"
69 '';
70 };
71 readit = with final; 45 readit = with final;
72 stdenv.mkDerivation { 46 stdenv.mkDerivation {
73 pname = "readit"; 47 pname = "readit";
@@ -110,7 +84,7 @@
110 }); 84 });
111 85
112 packages = forAllSystems (system: { 86 packages = forAllSystems (system: {
113 inherit (nixpkgsFor."${system}") readit readit-gen-invite node_modules; 87 inherit (nixpkgsFor."${system}") readit node_modules;
114 }); 88 });
115 89
116 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".readit); 90 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".readit);