Skip to content

Commit

Permalink
feat(nix): add default.nix and flake.nix configurations for ai-shell …
Browse files Browse the repository at this point in the history
…package
  • Loading branch information
use-the-fork committed Jul 23, 2024
1 parent 625ad5c commit 9bc7589
Show file tree
Hide file tree
Showing 7 changed files with 4,086 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake . '--impure' '--show-trace'
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.DS_Store
dist
dist
#snow-blower working dir
.sb*
34 changes: 34 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{dream2nix, ...}: {
imports = [
dream2nix.modules.dream2nix.nodejs-package-json-v3
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];

name = "ai-shell";
version = "1.0.10";

mkDerivation = {
src = ./.;
};

deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
gnugrep
stdenv
;

npm = nixpkgs.nodejs_18.pkgs.npm;
};

nodejs-package-lock-v3 = {
packageLockFile = ./package-lock.json;
};

# nodejs-granular-v3 = {
# buildScript = ''
# npm run pkgroll
# '';
# };
}
Loading

0 comments on commit 9bc7589

Please sign in to comment.