aboutsummaryrefslogtreecommitdiff
path: root/nix/packages/fcuny.net.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-10 07:43:24 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-10 07:43:24 -0800
commit11f72814a6affe379a2ddd17fc143665bc0def0d (patch)
treec3abba1c252799b7941c353a1a67503bc4ae3963 /nix/packages/fcuny.net.nix
parentreplacing my static website with a simple web app (diff)
downloadx-11f72814a6affe379a2ddd17fc143665bc0def0d.tar.gz
ignore errors
Diffstat (limited to '')
-rw-r--r--nix/packages/fcuny.net.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/packages/fcuny.net.nix b/nix/packages/fcuny.net.nix
new file mode 100644
index 0000000..e9ce950
--- /dev/null
+++ b/nix/packages/fcuny.net.nix
@@ -0,0 +1,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/fcuny/x/app/fcuny-net";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fcuny ];
+ platforms = platforms.unix;
+ mainProgram = "fcuny-net";
+ };
+}