{ # Builds a Haskell project that resolves a batch of deployment requests # against a service catalog with traverse. description = "A Haskell project for traverse-based resolution"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; inherit (pkgs) haskellPackages; project = haskellPackages.callCabal2nix "mini-resolution" ./. { }; checkedProject = pkgs.haskell.lib.doCheck project; in { packages.${system}.default = project; apps.${system}.default = { type = "app"; program = "${self.packages.${system}.default}/bin/mini-resolution"; meta.description = "Run the traverse-based release resolution example."; }; devShells.${system}.default = pkgs.mkShell { packages = [ haskellPackages.ghc pkgs.cabal-install pkgs.haskell-language-server ]; }; checks.${system}.test-suite = checkedProject; }; }