about summary refs log tree commit diff
path: root/nix/pkgs/r2wars-web/default.nix
blob: 887259088e181ecfb8450e679b6b6b43dc33e455 (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
{ pkgs, lib, fetchgit }:

pkgs.buildGoModule rec {
  name = "r2wars-web-${version}";
  version = "0.1.0";

  src = fetchgit {
    url = "git://git.emile.space/r2wars-web.git";
    hash = "sha256-n+La+C1diNCkxlGIxLu9nGQ//tJ5eDUjvXvdGP4Mdnk=";
  };

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

  postInstall = ''
    mkdir -p $out
    cp -r templates $out

    mv $out/bin/src $out/bin/r2wars-web
  '';
  
  doCheck = false;

  meta = {
    description = "A golang implementation of r2wars";
    homepage = "https://r2wa.rs";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hanemile ];
  };
}