diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..29c76fe --- /dev/null +++ b/flake.nix @@ -0,0 +1,31 @@ +{ + description = "My CV"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + nix-filter.url = "github:numtide/nix-filter"; + }; + + outputs = { self, nixpkgs, flake-utils, nix-filter, ... }: { + overlays.default = import ./nix/overlay.nix { inherit nix-filter; }; + } // flake-utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs { + inherit system; + overlays = [ self.overlays.default ]; + }; + in { + packages = { + inherit (pkgs.haskellPackages) mycv; + default = pkgs.haskellPackages.mycv; + }; + + devShells.default = pkgs.haskellPackages.shellFor { + packages = p: [ p.mycv ]; + withHoogle = true; + buildInputs = with pkgs.haskellPackages; [ + cabal-install + hpack + ]; + }; + }; +} |
