Skip to content

Commit

Permalink
adding appName to flake options and trying to work around hls issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Montmorency committed Jul 26, 2024
1 parent 9da30cd commit 4593fc5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devenv-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ that is defined in flake-module.nix
hspec
ihp-hsx
ihp-postgresql-simple-extra
haskell-language-server
]);

scripts.tests.exec = ''
Expand All @@ -111,7 +112,7 @@ that is defined in flake-module.nix
'';

languages.haskell.stack = null; # Stack is not used in IHP
languages.haskell.languageServer = ghcCompiler.haskell-language-server;
#languages.haskell.languageServer = ghcCompiler.haskell-language-server;
};

packages = {
Expand Down
23 changes: 23 additions & 0 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,29 @@ ihpFlake:
];
};

appName = lib.mkOption {
description =''
The derivation name.
Can be omitted if pname and version are set, in which case it is automatically set to ''${pname}-''${version}.
'';
type= lib.types.str;
default="app";
};

pName = lib.mkOption {
description = ''
The package name.
'';
type= lib.types.str;
};

version = lib.mkOption {
description = ''
The package version.
'';
type= lib.types.str;
};

projectPath = lib.mkOption {
description = ''
Path to the IHP project. You likely want to set this to `./.`.
Expand Down

0 comments on commit 4593fc5

Please sign in to comment.