opium/flake.nix

31 lines
739 B
Nix

{
description = "An opionated Postgres library";
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
apps.x86_64-linux.cabal = {
type = "app";
program = "${nixpkgs.legacyPackages.x86_64-linux.cabal-install}/bin/cabal";
};
devShells.x86_64-linux.default = pkgs.mkShell {
packages = [
pkgs.cabal-install
pkgs.haskellPackages.implicit-hie
(pkgs.ghc.withPackages (hp: with hp; [
containers
bytestring
postgresql-libpq
text
]))
pkgs.haskell-language-server
];
shellHook = ''
PS1="<opium> ''${PS1}"
'';
};
};
}