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

View file

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