Use makeWrapper

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-29 10:45:08 +01:00
parent 7f9a1dcb66
commit bff2fca2eb
7 changed files with 41 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> { }, ... }:
{ pkgs, ... }:
pkgs.buildGoModule (finalAttrs: {
pname = "nginx-receiver";
version = "0";

View File

@@ -191,14 +191,14 @@ func removeContents(directory string) error {
return fmt.Errorf("failed to read dir %s: %w", directory, err)
}
for _, entry := range entries {
err := os.RemoveAll(filepath.Join(directory, entry.Name()))
if err != nil {
return err
}
}
for _, entry := range entries {
err := os.RemoveAll(filepath.Join(directory, entry.Name()))
if err != nil {
return err
}
}
return nil
return nil
}
func renameOrCopyContents(sourceDirectory string) error {