Setup more package details
This commit is contained in:
parent
85bf7d520f
commit
d4799c3dc4
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue