Skip to content

Commit

Permalink
nix: Use getExe
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 27, 2022
1 parent 8ac5922 commit a2f0e94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
# versions, but with 'system' already applied.
perSystem = { self', inputs', pkgs, system, ... }:
let
name = "haskell-template";

inherit (pkgs.lib.lists) optionals;

# Specify GHC version here. To get the appropriate value, run:
Expand All @@ -43,7 +41,8 @@
, withHoogle ? false
}:
hp.developPackage {
inherit returnShellEnv withHoogle name;
inherit returnShellEnv withHoogle;
name = "haskell-template";
root = ./.;
overrides = self: super: with pkgs.haskell.lib; {
# Use callCabal2nix to override Haskell dependencies here
Expand All @@ -70,7 +69,7 @@
apps = {
default = {
type = "app";
program = "${self'.packages.default}/bin/${name}";
program = pkgs.lib.getExe self'.packages.default;
};
};
# Used by `nix develop ...`
Expand Down

0 comments on commit a2f0e94

Please sign in to comment.