diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 3f8ffec..827e2de 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -9,6 +9,12 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version == Unreleased + +=== Added + +* Add a development environment with link:https://nixos.org/[Nix package manager]. + + === Changed * Update the terms page. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..156b992 --- /dev/null +++ b/flake.lock @@ -0,0 +1,43 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1652372896, + "narHash": "sha256-lURGussfF3mGrFPQT3zgW7+RC0pBhbHzco0C7I+ilow=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "0d347c56f6f41de822a4f4c7ff5072f3382db121", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1652252629, + "narHash": "sha256-SvT64apetqc8P5nYp1/fOZvUmHUPdPFUZbhSpKy+1aI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d2fc6856824cb87742177eefc8dd534bdb6c3439", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e272e59 --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + description = "Basic flake template for setting up development shells"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = inputs@{ self, nixpkgs, ... }: + let systems = inputs.flake-utils.lib.defaultSystems; + in inputs.flake-utils.lib.eachSystem systems (system: { + devShells.default = + import ./shell.nix { pkgs = import nixpkgs { inherit system; }; }; + }); +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..457c8d6 --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +{ pkgs ? import { } }: + +with pkgs; + +mkShell { packages = [ + asciidoctor + go + hugo +]; }