Created
June 19, 2021 18:29
-
-
Save rpearce/c6b8a228b737bd6d6c1661eaa5721f25 to your computer and use it in GitHub Desktop.
IHP Web Framework Nix Flake
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
{ | |
description = "IHP flake"; | |
nixConfig.bash-prompt = "[nix]\\e\[38;5;172mλ \\e\[m"; | |
inputs = { | |
nixpkgs.url = "nixpkgs/nixos-21.05"; | |
flake-utils = { | |
url = "github:numtide/flake-utils"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
ihp-new = { | |
url = "https://ihp.digitallyinduced.com/ihp-new.tar.gz"; | |
flake = false; | |
}; | |
}; | |
outputs = { flake-utils, ihp-new, nixpkgs, self }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let | |
ihpOverlay = (final: prev: { inherit ihp-new; }); | |
config = {}; | |
overlays = [ ihpOverlay ]; | |
pkgs = import nixpkgs { inherit config overlays system; }; | |
in rec { | |
devShell = pkgs.mkShell { | |
buildInputs = with pkgs; [ | |
direnv | |
cachix | |
ihp-new | |
]; | |
shellHook = '' | |
eval "$(direnv hook bash)" | |
''; | |
}; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment