-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed shell.nix * pinned nixpkgs * added flake-utils
- Loading branch information
Showing
3 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
{ | ||
description = "AR.IO Node"; | ||
|
||
outputs = { self, nixpkgs }: | ||
let pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||
in { | ||
devShell.x86_64-linux = import ./shell.nix { inherit pkgs; }; | ||
}; | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem ( | ||
system: | ||
let pkgs = (import nixpkgs { | ||
inherit system; | ||
}); | ||
in { | ||
devShells = { | ||
default = pkgs.mkShell { | ||
name = "ar-io-node-shell"; | ||
buildInputs = with pkgs; [ | ||
nodejs | ||
sqlite-interactive | ||
]; | ||
}; | ||
}; | ||
} | ||
); | ||
|
||
nixConfig.bash-prompt = "\\e[32m\[ar-io-node-shell\]$\\e[0m "; | ||
} |