Skip to content

Commit d269456

Browse files
committed
nix: flakes
1 parent a9ae18b commit d269456

2 files changed

Lines changed: 88 additions & 0 deletions

File tree

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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
description = "Blockfrost OpenAPI specification";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = import nixpkgs { inherit system; };
13+
in
14+
{
15+
devShells.default = pkgs.mkShell {
16+
buildInputs = [
17+
pkgs.nodejs_20
18+
pkgs.openjdk21
19+
(pkgs.yarn.override { nodejs = pkgs.nodejs_20; })
20+
];
21+
22+
shellHook = ''
23+
export PATH="$PATH:$(pwd)/node_modules/.bin"
24+
'';
25+
};
26+
});
27+
}

0 commit comments

Comments
 (0)