Created
July 29, 2023 20:45
-
-
Save jasikpark/3ee004f0096d92fabb3a79ba5ab7af86 to your computer and use it in GitHub Desktop.
use an old hugo version via nix flakes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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