Skip to content

Instantly share code, notes, and snippets.

@jasikpark
Created July 29, 2023 20:45
Show Gist options
  • Save jasikpark/3ee004f0096d92fabb3a79ba5ab7af86 to your computer and use it in GitHub Desktop.
Save jasikpark/3ee004f0096d92fabb3a79ba5ab7af86 to your computer and use it in GitHub Desktop.
use an old hugo version via nix flakes
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
old-hugo-nixpkgs.url = "github:NixOS/nixpkgs/4fe31ab170bbbdd089b05b268b681542886eb642";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, old-hugo-nixpkgs, flake-utils, }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs { inherit system; };
hugo = old-hugo-nixpkgs.legacyPackages.${system}.hugo;
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [ hugo ];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment