Profpatsch/third_party/overlays/sam/pkgs/by-name/nix-actor/package.nix
 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
31
32
33
{ lib
, stdenv
, buildNimSbom
, fetchFromSyndicateLang
, nix
, openssl
, pkg-config
}:

buildNimSbom
  (finalAttrs: {
    src = fetchFromSyndicateLang {
      owner = "ehmry";
      repo = "nix_actor";
      rev = "7be162ee44bdaa1684f046beb415909261914ea9";
      hash = "sha256-HPOCuoZL+acjZh21HE6H2qDtCHrzZWj7g3AlrDcMx2U=";
    };

    nativeBuildInputs = [ pkg-config ];

    buildInputs = [
      nix
      openssl
    ];

    env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=incompatible-pointer-types";

    meta = {
      mainProgram = "nix-actor";
      maintainers = [ lib.maintainers.ehmry ];
    };

  }) ./sbom.json