Skip to content

Commit 5dbe0cd

Browse files
committed
starting nix
1 parent d2302a5 commit 5dbe0cd

4 files changed

Lines changed: 98 additions & 0 deletions

File tree

‎.envrc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# shellsheck shell=bash
2+
set -euo pipefail
3+
4+
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
5+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
6+
fi
7+
use flake .

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/.direnv/
2+
13
# Miscellaneous
24
*.class
35
*.log

‎flake.lock‎

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs =
8+
{
9+
self,
10+
flake-utils,
11+
nixpkgs,
12+
}:
13+
flake-utils.lib.eachDefaultSystem (
14+
system:
15+
let
16+
pkgs = import nixpkgs { inherit system; };
17+
in
18+
{
19+
devShell = pkgs.mkShell {
20+
buildInputs = with pkgs; [
21+
bun
22+
flutter
23+
pnpm
24+
];
25+
};
26+
}
27+
);
28+
}

0 commit comments

Comments
 (0)