Skip to content

Commit 36498a5

Browse files
nix: clean up default.nix
1 parent 7869450 commit 36498a5

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

default.nix

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ pkgs.stdenv.mkDerivation {
3434
license = licenses.agpl3Plus;
3535
platforms = platforms.all;
3636
mainProgram = "start-bundle";
37-
maintainers = with maintainers; [ RorySys ]; # lol.
37+
maintainers = with maintainers; [ RorySys ];
3838
};
3939

4040
src = filteredSrc;
4141
dontStrip = true;
4242

43-
npmBuildScript = "build:tsgo";
4443
nativeBuildInputs = with pkgs; [
4544
nodejs
4645
makeWrapper
@@ -49,12 +48,12 @@ pkgs.stdenv.mkDerivation {
4948

5049
configurePhase = ''
5150
cp -r --no-preserve=ownership,timestamps ${pkgs.callPackage ./node-modules.nix { }} node_modules
52-
chown $USER:$GROUP node_modules -Rc
53-
chmod +w node_modules -Rc
51+
chown $USER:$GROUP node_modules -R
52+
chmod +w node_modules -R
5453
'';
5554

5655
buildPhase = ''
57-
npm run --loglevel silly build:tsgo
56+
npm run build:tsgo
5857
'';
5958

6059
installPhase =
@@ -71,9 +70,8 @@ pkgs.stdenv.mkDerivation {
7170
runHook preInstall
7271
# set -x
7372
74-
echo installPhase
7573
# remove packages not needed for production, or at least try to...
76-
npm prune --omit dev --no-save --offline #--loglevel silly
74+
npm prune --omit dev --no-save --offline
7775
rm -v dist/src.tsbuildinfo
7876
rm -rv scripts
7977
time ${./nix/trimNodeModules.sh}

0 commit comments

Comments
 (0)