rauhala.info/flake.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2021-11-26 16:52:39 +02:00
{
description = "rauhala.info";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
2021-11-26 16:52:39 +02:00
{
}
//
flake-utils.lib.eachDefaultSystem (system:
let
2022-08-18 10:57:08 +03:00
pkgs = nixpkgs.legacyPackages.${system};
2023-04-25 20:49:28 +03:00
tailwindcss-cli = pkgs.callPackage ./tailwind {};
2022-08-18 10:57:08 +03:00
hp = pkgs.haskellPackages.override ( old: {
overrides = pkgs.lib.composeExtensions ( old.overrides or (_: _: {})) (f: p: {
build-rauhala-info = f.callPackage ./site {};
});
} );
2021-11-26 16:52:39 +02:00
in
rec {
2022-08-18 11:24:36 +03:00
packages.rauhala-info = pkgs.callPackage ./rauhala.info { site = hp.build-rauhala-info; };
2021-11-26 16:52:39 +02:00
defaultPackage = packages.rauhala-info;
devShell = hp.shellFor {
packages = h: [h.build-rauhala-info];
buildInputs = with pkgs; [
ghcid
cabal-install
stylish-haskell
entr
haskell-language-server
2021-11-26 21:47:20 +02:00
ipfs
2023-04-25 20:49:28 +03:00
tailwindcss-cli
2021-11-26 16:52:39 +02:00
];
};
});
}