Home

cfg-playground @613f5bf8a366f976d4dfc8637b9b048df14403e2 - refs - log -
-
https://git.jolheiser.com/cfg-playground.git
cfg playground
cfg-playground / nix / pkg.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  pkgs ? import <nixpkgs>,
}:
let
  name = "cfg-playground";
in
pkgs.buildGoModule {
  pname = name;
  version = "main";
  src = pkgs.nix-gitignore.gitignoreSource [ ] (
    builtins.path {
      inherit name;
      path = ../.;
    }
  );
  vendorHash = pkgs.lib.fileContents ../go.mod.sri;
  CGO_ENABLED = 0;
  flags = [ "-trimpath" ];
  ldflags = [
    "-s"
    "-w"
    "-extldflags -static"
  ];
  meta = {
    description = "Playground for cfg";
    homepage = "https://git.jolheiser.com/cfg-playground";
    mainProgram = "cfg-playground";
  };
}