From 1917fbf88122308840db5e7a11b359b8ef76b9fd Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Wed, 18 Jan 2023 13:57:35 -0500 Subject: [PATCH] Add explicit flake inputs --- template/flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/template/flake.nix b/template/flake.nix index 35ce94f..a128bbe 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -1,10 +1,14 @@ { description = "A haskell executable"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let - overlays = []; pkgs = nixpkgs.legacyPackages.${system}; # package/executable name @@ -22,10 +26,8 @@ withHoogle = false; overrides = self: super: with pkgs.haskell.lib; { # Use callCabal2nix to override Haskell dependencies here - # cf. https://tek.brick.do/K3VXJd8mEKO7 # Example: # > NanoID = self.callCabal2nix "NanoID" inputs.NanoID { }; - # Assumes that you have the 'NanoID' flake input defined. }; modifier = drv: pkgs.haskell.lib.addBuildTools drv (with hp; [