darwin shell

This commit is contained in:
Anish Lakhwara 2024-09-18 18:43:08 -07:00
parent 07efb8c48c
commit cedc5db744
2 changed files with 58 additions and 7 deletions

View file

@ -1,5 +1,23 @@
{ {
"nodes": { "nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1726560853,
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708407374, "lastModified": 1708407374,
@ -18,8 +36,24 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,11 +1,28 @@
{ {
description = "A basic flake with a shell"; description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, ... }: outputs = { nixpkgs, flake-utils, ... }:
let pkgs = nixpkgs.legacyPackages."x86_64-linux"; flake-utils.lib.eachDefaultSystem (system:
in { let
devShells."x86_64-linux".default = pkgs = import nixpkgs { inherit system; };
pkgs.mkShell { packages = with pkgs; [ go sqlite nodejs pigeon ]; }; in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
pigeon
nodejs
sqlite
];
shellHook = ''
echo "System: ${system}"
'';
}; };
} }
);
}