about summary refs log tree commit diff
path: root/default.nix
blob: c74f5859c7be90956bccd28e2573319d145a582f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs ? import <nixpkgs> {}, lib ? pkgs.lib, ... }:

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

  src = ./.;
	vendorHash = null;

  CGO_ENABLED=0;

  subPackages = [ "src" ];
  postInstall = ''
    mv $out/bin/src $out/bin/r2wars-web
  '';
  
  meta = {
    description = "A golang implementation of r2wars";
    homepage = "https://r2wa.rs";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hanemile ];
  };
}