hbs2/miscellaneous/db-pipe/flake.nix

49 lines
1.2 KiB
Nix

{
description = "db-pipe";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
haskell-flake-utils.url = "github:ivanovs-4/haskell-flake-utils";
};
outputs = { self, nixpkgs, haskell-flake-utils, ... }@inputs:
haskell-flake-utils.lib.simpleCabal2flake {
inherit self nixpkgs;
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
name = "db-pipe";
# shellWithHoogle = true;
# haskellFlakes = with inputs; [
# ];
# hpPreOverrides = { pkgs }: new: old:
# with pkgs.haskell.lib;
# with haskell-flake-utils.lib;
# tunePackages pkgs old {
# somepkg = [ (jailbreakUnbreak pkgs) dontCheck ];
# };
packagePostOverrides = { pkgs }: with pkgs; with haskell.lib; [
disableExecutableProfiling
disableLibraryProfiling
dontBenchmark
dontCoverage
dontDistribute
dontHaddock
dontHyperlinkSource
doStrip
enableDeadCodeElimination
justStaticExecutables
dontCheck
];
shellExtBuildInputs = {pkgs}: with pkgs; [
haskellPackages.haskell-language-server
];
};
}