Skip to content

Commit

Permalink
Clean source before building
Browse files Browse the repository at this point in the history
  • Loading branch information
Reasonable-Solutions committed Jun 27, 2023
1 parent 8dcebdd commit 73a462f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });

# Remove .gits etc from the build inputs
src = nixpkgs.lib.cleanSource ./.;

in {

# Provide some binary packages for selected system types.
Expand All @@ -32,9 +35,7 @@
default = pkgs.buildGoModule {
pname = "narcos";
inherit version;
# In 'nix develop', we don't need a copy of the source tree
# in the Nix store.
src = ./.;
inherit src;

# how do i goflags this?
postInstall = ''
Expand Down

0 comments on commit 73a462f

Please sign in to comment.