Skip to content

Commit

Permalink
okay i think i'm happy with it now
Browse files Browse the repository at this point in the history
  • Loading branch information
mstksg committed Dec 30, 2023
1 parent 2c8ddf8 commit 6a7ff10
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,21 @@
};
devShells.default = pkgs.mkShell {
shellHook = ''
echo "Available commands: build-js inCode-build"
echo "Available commands: build-js inCode-build clean-all"
'';
nativeBuildInputs = [ pkgs.esbuild pkgs.purescript ]
++ haskellFlake.devShell.nativeBuildInputs
++ lib.mapAttrsToList (name: value: value.develop.buildInputs) inCode.purescript;
packages = [
build-js
inCode.haskell
(pkgs.writeShellScriptBin "clean-all" ''
rm -r _purescript
rm -r _purescript-build
inCode-build clean
'')
];
};
apps.clean = flake-utils.lib.mkApp {
drv = pkgs.writeShellScriptBin "clean" ''
rm -r _purescript
rm -r _purescript-build
rm -r _cache
rm -r _site
'';
};
}
);
}
Expand Down

0 comments on commit 6a7ff10

Please sign in to comment.