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";
|
|
|
|
};
|
|
|
|
|
2022-08-18 10:37:28 +03:00
|
|
|
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};
|
|
|
|
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
|
2022-08-18 10:37:28 +03:00
|
|
|
haskell-language-server
|
2021-11-26 21:47:20 +02:00
|
|
|
ipfs
|
2023-03-29 21:50:50 +03:00
|
|
|
nodePackages.npm
|
|
|
|
node2nix
|
2021-11-26 16:52:39 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|