Skip to content

Commit

Permalink
chore: add Nix development shell
Browse files Browse the repository at this point in the history
  • Loading branch information
tensor5 committed Oct 10, 2024
1 parent c06fdae commit 927b3dc
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

use flake
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ TODO
.history

/src/generated

# direnv
/.direnv
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
description = "A web editor to generate and validate `publiccode.yml` files";

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

outputs = { flake-utils, nixpkgs, self }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; }; in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.go
pkgs.nodejs
pkgs.shellcheck
];
};
formatter = pkgs.nixpkgs-fmt;
}
);
}

0 comments on commit 927b3dc

Please sign in to comment.