Skip to content

Commit

Permalink
refactor: 'nix develop' flake
Browse files Browse the repository at this point in the history
  * removed shell.nix
  * pinned nixpkgs
  * added flake-utils
  • Loading branch information
hlolli committed Sep 1, 2023
1 parent b242736 commit 685805e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 19 deletions.
47 changes: 41 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 25 additions & 5 deletions flake.nix
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 ";
}
8 changes: 0 additions & 8 deletions shell.nix

This file was deleted.

0 comments on commit 685805e

Please sign in to comment.