Skip to content

Commit

Permalink
fix: use static nix in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Aug 10, 2024
1 parent 010300b commit 41080d5
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,19 @@
# $ nix -L build .#github-action-scan:exe:github-action-scan-exe
packages = projectFlake.packages // {
weeder-analysis = project.args.weeder.analysis;
github-action-scan-image = pkgs.dockerTools.buildImage {
name = "blackheaven/haskell-security-action";
tag = "latest";

copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [
projectFlake.packages."static:github-action-scan:exe:github-action-scan"
];
pathsToLink = [ "/bin" ];
};
config = { Cmd = [ "/bin/only-for-file-transfer" ]; };
};
};

# For entering the default development shell:
Expand Down Expand Up @@ -430,10 +443,11 @@
git-hooks-check = inputs.git-hooks.lib.${system}.run {
src = ./.;
hooks = {
#cabal-fmt.enable = true;
#fourmolu.enable = true;
#hlint.enable = true;
#nixfmt-rfc-style.enable = true;
cabal-fmt.enable = true;
ormolu.enable = true;
hlint.enable = true;
# nixfmt-rfc-style.enable = true;
# nixfmt-classic.enable = true;
nixfmt.enable = true;
};
};
Expand Down

0 comments on commit 41080d5

Please sign in to comment.