From 97a04e49eabc3c964cb10d755214d50c993bab41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Tue, 2 Sep 2025 16:53:56 +0100 Subject: [PATCH] initial commit --- .../haskell-flake/hello-flake-haskell.cabal | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 source/new-flake/haskell-flake/hello-flake-haskell.cabal diff --git a/source/new-flake/haskell-flake/hello-flake-haskell.cabal b/source/new-flake/haskell-flake/hello-flake-haskell.cabal new file mode 100644 index 0000000..9afd3a4 --- /dev/null +++ b/source/new-flake/haskell-flake/hello-flake-haskell.cabal @@ -0,0 +1,28 @@ +cabal-version: 3.0 +name: hello-flake-haskell +version: 1.0.0 +synopsis: A simple demonstration using a Nix flake to package a Haskell program. +description: + For more information and a tutorial on how to use this package, + please see the README at . +homepage: https://codeberg.org/mhwombat/nix-book +bug-reports: https://codeberg.org/mhwombat/nix-book/issues +license: GPL-3.0-only +license-file: LICENSE +author: Amy de Buitléir +maintainer: amy@nualeargais.ie +copyright: (c) 2023 Amy de Buitléir +category: Text +build-type: Simple + +executable hello-flake-haskell + main-is: Main.hs + build-depends: + base, + hostname + -- NOTE: Best practice is to specify version constraints for the packages we depend on. + -- However, I'm confident that this package will only be used as a Nix flake. + -- Nix will automatically ensure that anyone running this program is using the + -- same library versions that I used to build it. + default-language: Haskell2010 +