Setup more package details

This commit is contained in:
Kiana Sheibani 2023-01-24 13:23:02 -05:00
parent 85bf7d520f
commit d4799c3dc4
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
2 changed files with 9 additions and 7 deletions

View file

@ -9,7 +9,6 @@
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [];
pkgs = nixpkgs.legacyPackages.${system};
# package/executable name
@ -40,11 +39,11 @@
in
{
# Used by `nix build` & `nix run` (prod exe)
defaultPackage = project false;
packages.default = project false;
defaultApp = {
apps.default = {
type = "app";
program = "${self.defaultPackage.${system}}/bin/${execName}";
program = "${self.packages.${system}.default}/bin/${execName}";
};
# Used by `nix develop` (dev shell)

View file

@ -7,7 +7,10 @@ license: MIT
build-type: Simple
executable snake
hs-source-dirs: src
main-is: Main.hs
default-language: GHC2021
other-modules:
build-depends: dunai
default-language: GHC2021
default-extensions: Arrows
build-depends: base,
dunai,
gloss