aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-02-01 16:08:14 -0500
committertdro <tdro@noreply.example.com>2023-02-01 16:08:14 -0500
commitbf61afac7a035ec6cf043b447d0f59ec27b15af2 (patch)
tree09916e2b06e124d9bf47b0a10188d3b04d42dedf
parent0e57d29f33a6fe4b8ec8a92b98c069305f531a19 (diff)
downloadhugo-theme-base-bf61afac7a035ec6cf043b447d0f59ec27b15af2.tar.gz
hugo-theme-base-bf61afac7a035ec6cf043b447d0f59ec27b15af2.tar.bz2
hugo-theme-base-bf61afac7a035ec6cf043b447d0f59ec27b15af2.zip
shell.nix: Lock down
Use standard format and adjust formatting on shell script
-rw-r--r--make10
-rw-r--r--shell.nix14
2 files changed, 12 insertions, 12 deletions
diff --git a/make b/make
index d35059c..3399f88 100644
--- a/make
+++ b/make
@@ -28,15 +28,15 @@ done
}
Hugo() {
- sh "$0" Config
- hugo --debug
- rm --force .hugo_build.lock
+ sh "$0" Config
+ hugo --debug
+ rm --force .hugo_build.lock
}
Config() {
set -x
- yj -yj -i < config.yaml > config.json
- yj -yt -i < config.yaml > config.toml
+ yj -yj -i < config.yaml > config.json
+ yj -yt -i < config.yaml > config.toml
}
Clean() {
diff --git a/shell.nix b/shell.nix
index c5238ff..08dcb1b 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,16 +1,16 @@
let
- pkgs = import <nixpkgs> { };
name = "nix-shell.hugo-theme-base";
- mkShellPure = pkgs.callPackage (builtins.fetchurl {
- url = "https://raw.githubusercontent.com/tdro/dotfiles/b710281b132056105709c03dda1899a6afc68a93/.config/nixpkgs/helpers/mkShellPure.nix";
- sha256 = "1ciwifsx2hrp0ymm077zfb5q8ravrk545bda1q249y2spw9np4ms";
- }) { };
+ nixpkgs = import <nixpkgs> { };
-in mkShellPure {
+ pkgs = import (builtins.fetchTarball {
+ url = "https://github.com/NixOS/nixpkgs/archive/ddc33509516c5e3b1a3e5099dfde07c94c032ba3.tar.gz";
+ sha256 = "0510g7g5vsn4j37xaww3szld00dcwm9bwl47yx4rgb1dwb7sy4fn"; }) { };
- packages = [
+in pkgs.mkShell {
+
+ buildInputs = [
pkgs.hugo
pkgs.busybox
pkgs.caddy