diff --git a/source/recipes/devshell/haskell-pkg/tempwork/flake.lock b/source/recipes/devshell/env-var/tempwork/flake.lock similarity index 100% rename from source/recipes/devshell/haskell-pkg/tempwork/flake.lock rename to source/recipes/devshell/env-var/tempwork/flake.lock diff --git a/source/recipes/devshell/haskell-pkg/tempwork/flake.nix b/source/recipes/devshell/env-var/tempwork/flake.nix similarity index 75% rename from source/recipes/devshell/haskell-pkg/tempwork/flake.nix rename to source/recipes/devshell/env-var/tempwork/flake.nix index 5eb2141..7d462f8 100644 --- a/source/recipes/devshell/haskell-pkg/tempwork/flake.nix +++ b/source/recipes/devshell/env-var/tempwork/flake.nix @@ -8,12 +8,13 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; - customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ p.extra ]); in { devShells = rec { default = pkgs.mkShell { - buildInputs = [ customGhc ]; + shellHook = '' + export FOO="bar" + ''; }; }; } diff --git a/source/recipes/devshell/haskell-pkg/tempwork/Main.hs b/source/recipes/devshell/haskell-pkg/tempwork/Main.hs deleted file mode 100644 index 4fe2929..0000000 --- a/source/recipes/devshell/haskell-pkg/tempwork/Main.hs +++ /dev/null @@ -1,6 +0,0 @@ -import Data.List.Extra - -main :: IO () -main = do - print $ lower "ABCDE" - print $ upper "XYZ"