Skip to content

Commit aa9feda

Browse files
committed
Add flake.nix with devShell
1 parent d35c647 commit aa9feda

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

flake.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
description = "Preliminary devshell support for WalletLedgerExport";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6+
};
7+
8+
outputs = { self, nixpkgs, flake-utils }:
9+
let
10+
in {
11+
devShells = forEachSystem (system:
12+
let
13+
pkgs = import nixpkgs { inherit system; };
14+
in {
15+
default = pkgs.mkShell {
16+
buildInputs = [
17+
pkgs.jdk # JDK 21 (We're still building with ./gradlew, so install JDK not gradle)
18+
];
19+
shellHook = ''
20+
echo "Welcome to WalletLedgerExport"
21+
'';
22+
};
23+
});
24+
};
25+
}

0 commit comments

Comments
 (0)