Home

nur @92a67486e63e91de5c8467d7d6a2d60334f90038 - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / imp / default.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
{
  buildGoModule,
  fetchFromGitea,
  lib,
  ...
}:
buildGoModule rec {
  pname = "imp";
  version = "0.0.6";

  src = fetchFromGitea {
    domain = "git.jojodev.com";
    owner = "jolheiser";
    repo = "imp";
    rev = "v${version}";
    sha256 = "sha256-Mxzav1qNGQTshYUfWmh9ciPlj9QuOOR4BHy63O+mCTk=";
  };

  vendorSha256 = "sha256-1az96BTJrkj6tigca5YNwEB9fX+BZX2A+aBttOQfo9g=";

  ldflags = ["-s" "-w" "-X=main.Version=${version}"];

  meta = with lib; {
    description = "Opinionated import formatter";
    homepage = "https://git.jojodev.com/jolheiser/imp";
    license = licenses.mit;
  };
}