Skip to content

Commit 1ac7d70

Browse files
committed
chore: Add flake.nix
1 parent 22ff3fa commit 1ac7d70

3 files changed

Lines changed: 117 additions & 0 deletions

File tree

.envrc.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

flake.lock

Lines changed: 85 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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
description = "Development environment for jsr-probitas/documents";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
probitas.url = "github:jsr-probitas/probitas";
8+
probitas.inputs.nixpkgs.follows = "nixpkgs";
9+
probitas.inputs.flake-utils.follows = "flake-utils";
10+
};
11+
12+
outputs = { self, nixpkgs, flake-utils, probitas }:
13+
flake-utils.lib.eachDefaultSystem (system:
14+
let
15+
pkgs = import nixpkgs { inherit system; };
16+
probitasPkg = probitas.packages.${system}.probitas;
17+
in {
18+
packages.default = probitasPkg;
19+
20+
devShells.default = pkgs.mkShell {
21+
packages = [
22+
pkgs.deno
23+
probitasPkg
24+
];
25+
26+
shellHook = ''
27+
export DENO_NO_UPDATE_CHECK=1
28+
'';
29+
};
30+
});
31+
}

0 commit comments

Comments
 (0)