aboutsummaryrefslogtreecommitdiff
path: root/nix/packages/website.nix
blob: 4a8346d132a9a516e1c740b250197c65bb13f94c (plain) (blame)
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
{
  lib,
  buildGoModule,
}:

buildGoModule rec {
  pname = "fcuny-net";
  version = "0.1.0"; # Consider deriving from git tags: version = builtins.substring 0 8 self.rev;

  src = ../..;

  vendorHash = "sha256-mpwboru/KBCJ8Fuy8kpicKgbmhHDlj7ZNXrfdIUkilg=";

  subPackages = [ "app/fcuny-net" ];

  ldflags = [
    "-s"
    "-w"
  ];

  doCheck = false;

  meta = with lib; {
    description = "My personal website";
    homepage = "https://code.fcuny.net/x/tree/app/fcuny-net";
    license = licenses.mit;
    maintainers = with maintainers; [ fcuny ];
    platforms = platforms.unix;
    mainProgram = "fcuny-net";
  };
}