Skip to content

Commit

Permalink
Include git info in executable
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen authored and mrkkrp committed Aug 18, 2021
1 parent 09f45d8 commit e0e961e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ let
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "ormolu";
src = ./.;
keepGitDir = true;
};
projectFileName = "cabal.project";
compiler-nix-name = ormoluCompiler;
modules = [({pkgs, ...}: {
packages.ormolu.components.exes.ormolu.build-tools =
pkgs.lib.mkForce [ pkgs.buildPackages.buildPackages.gitReallyMinimal ];
packages.ormolu.components.exes.ormolu.extraSrcFiles = [ ".git/**/*" ];
})];
};
ormolu = hsPkgs.ormolu;
ormoluExe = ormolu.components.exes.ormolu;
Expand Down

0 comments on commit e0e961e

Please sign in to comment.