mirror of
https://github.com/foo-dogsquared/hugo-theme-contentful.git
synced 2025-01-30 16:57:56 +00:00
Add devshell with Nix package manager
This commit is contained in:
parent
e2dbaf5d25
commit
690788b6a3
@ -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.
|
||||
|
43
flake.lock
generated
Normal file
43
flake.lock
generated
Normal file
@ -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
|
||||
}
|
15
flake.nix
Normal file
15
flake.nix
Normal file
@ -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; }; };
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user