mirror of
https://github.com/serokell/haskell-nix-weeder.git
synced 2024-11-25 01:38:16 +03:00
Allow overriding weeder package
This commit is contained in:
parent
7f11f514b5
commit
a959fce749
@ -11,5 +11,6 @@
|
||||
'';
|
||||
|
||||
# generates a script for running weeder
|
||||
weeder-script = { local-packages, hs-pkgs }: import ./weeder-script.nix { inherit pkgs local-packages hs-pkgs; };
|
||||
weeder-script = { local-packages, hs-pkgs, weeder ? pkgs.haskellPackages.weeder }:
|
||||
import ./weeder-script.nix { inherit pkgs weeder local-packages hs-pkgs; };
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ pkgs, # nixpkgs package set
|
||||
local-packages, # list of local haskell packages in the project and their subdirectories
|
||||
hs-pkgs # package set returned by `haskell-nix.stackProject`
|
||||
hs-pkgs, # package set returned by `haskell-nix.stackProject`
|
||||
weeder # weeder package
|
||||
}:
|
||||
|
||||
with rec {
|
||||
@ -56,7 +57,7 @@ with rec {
|
||||
export PATH="${fake-stack}/bin:$PATH"
|
||||
|
||||
# run weeder
|
||||
${pkgs.haskellPackages.weeder}/bin/weeder stack.yaml --dist dist-hi
|
||||
${weeder}/bin/weeder stack.yaml --dist dist-hi
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user