Home

nur @78c5cc2c6a45336526c992b0dc10928a5d195719 - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / kv / 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
29
30
31
32
33
{
  buildGoModule,
  fetchFromGitea,
  lib,
  ...
}:
buildGoModule rec {
  pname = "kv";
  version = "0.0.4";

  src = fetchFromGitea {
    domain = "git.jojodev.com";
    owner = "jolheiser";
    repo = "kv";
    rev = "v${version}";
    sha256 = "sha256-VkFzb44FiuV0LMxXwjoEaFvfc5ExHIUcjrjN7yxXnHo=";
  };

  vendorSha256 = "sha256-COA/YSyJanoxvYG3LFmp9eCwVJuqI9PZV1fLOs4MSPo=";

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

  postInstall = ''
    mkdir -p $out/share
    cp -vr ./contrib/kv-completions.nu $out/share/kv-completions.nu
  '';

  meta = with lib; {
    description = "Key/Value store";
    homepage = "https://git.jojodev.com/jolheiser/kv";
    license = licenses.mit;
  };
}