From d52df0654d9207d976ce6d8e2633f2e91860b87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Tue, 14 Oct 2025 11:50:52 +0100 Subject: [PATCH] temp --- .../devshell/{haskell-pkg => env-var}/tempwork/flake.lock | 0 .../devshell/{haskell-pkg => env-var}/tempwork/flake.nix | 5 +++-- source/recipes/devshell/haskell-pkg/tempwork/Main.hs | 6 ------ 3 files changed, 3 insertions(+), 8 deletions(-) rename source/recipes/devshell/{haskell-pkg => env-var}/tempwork/flake.lock (100%) rename source/recipes/devshell/{haskell-pkg => env-var}/tempwork/flake.nix (75%) delete mode 100644 source/recipes/devshell/haskell-pkg/tempwork/Main.hs 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"