about summary refs log tree commit diff
path: root/nix/pkgs/remarvin/default.nix
blob: a45bad2fdb3abde5d6d3239a8df38ef3fa231135 (plain)
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
{
  pkgs,
  lib,
  fetchgit,
}:

pkgs.buildGoModule rec {
  name = "remarvin-${version}";
  version = "0.1.1";

  src = fetchgit {
    url = "git://git.emile.space/remarvin.git";
    hash = "sha256-jgV5bzQQ4n9v7PgFQ5n0yFTPcjgHNQ/BYPxzTp1Os4w=";
  };

  vendorHash = null;
  CGO_ENABLED = 0;
  subPackages = [ "src" ];

  postInstall = ''
    mkdir -p $out
    mv $out/bin/src $out/bin/remarvin
  '';

  doCheck = false;

  meta = {
    description = "A small marvin bot";
    homepage = src.url;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hanemile ];
  };
}