Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
feat: add opengist Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmUDq8QACgkQuFOtpdp7 v3o8TA/+N7/mPqRA0eDgvOVxnGlMLzO77W9qadbOvYPCgcCfeI/4scNDH8FzpBO7 ZZWCzXk66r2OmM9SYu2+lcQudcrSAqbqLoLPO7acpdOMTmOPCB3zy8c6eG//LPW8 rSex6oMaWEaCpeaXwEQW1LgIBhhNeftAJrQo3s6y3Q6swzvD0wjC2pH/VQ/XwAgT gR3hiPpdknFAie5ld8NYGnvEKXiIQEwudMObdQlL8wfu4ntuGlSjgZLi9Ty8nlyi UNdJvLm+CQGHpJ4vyS8J9gsOTHgEf94f2W/qU7Ptb4A781E40giSNOk+PLwui47v 6bEKGu04doYurVzE0H1U8WtfJMZ/efsXwvUyIJzXLMiiPh02uOrDq4I2uCpmI/6V ROYMzSElkri79l/hJJiv6hT7p5fQQnfqkgSFqfO9D5FOxShlkXp/qVmlwa6M5zym pPG5wtWHZXW1RF+KakGpSBaUAn1pm5y5LI/UWzh6LClkr53ECcvgOY5y+BXwm2WJ NBxvJvbO1+3UpbS6fML1P5DFkamK4mt2l3uAandCmCJ5QgfZ0tLSHBUxNPVl0how 66xD8P0c3LoblgaIpfrzFI/Uc7tcO8sryFM5zr62N0ta4CXSS8KSExzMK+Nzdgfj 7/Z7IJ+yIcn5wDSp6Y6cOwiyFfBYJr1u6FgFJuHqW4n+a5L02kA= =NRQp -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
4 changed files, 34 additions(+), 1 deletions(-)
M README.md -> README.md
diff --git a/README.md b/README.md
index ebc07421aca3fd39811b73a82f78b9c93ec9e171..cb96e984afebe38e81687670dcb1b1578da5042c 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,8 @@ |[git-age](https://git.jojodev.com/jolheiser/git-age)|`0.0.2`|
 |[gomodinit](https://git.jojodev.com/jolheiser/gomodinit)|`0.1.1`|
 |[imp](https://git.jojodev.com/jolheiser/imp)|`0.0.8`|
 |[kv](https://git.jojodev.com/jolheiser/kv)|`0.0.4`|
-|[prospect-mail](https://github.com/julian-alarcon/prospect-mail)|`0.5.2`|
+|[opengist](https://github.com/thomiceli/opengist)|`1.4.2`|
+|[prospect-mail](https://github.com/julian-alarcon/prospect-mail)|`24e49ca0187884fa772a5928c56d7a9ed76441bd`|
 |[tclip](https://github.com/tailscale-dev/tclip)|`2c99626eb040cb9a54cdf4015c5d2bfd0a7be038`|
 |[tmpl](https://git.jojodev.com/jolheiser/tmpl)|`0.4.0`|
+
M README.nu -> README.nu
diff --git a/README.nu b/README.nu
old mode 100644
new mode 100755
index 4288f365b337a7e87f94f10b41e80cdca170449e..f382195a3fffc99e63beaac4d477a33c63f74833
--- a/README.nu
+++ b/README.nu
@@ -1,3 +1,5 @@
+#!/usr/bin/env nu
+
 let re = '(?s)pname = "(?P<name>[^"]+)".+version = "(?P<version>[^"]+)".+homepage = "(?P<homepage>[^"]+)"'
 let pkgs = glob pkgs/*
           | each { |it| open --raw $"($it)/default.nix" | parse --regex $re }
M default.nix -> default.nix
diff --git a/default.nix b/default.nix
index 581f1c854da5659939907a9d79fe3eb02d30fdac..99b959f7770849c5d485fb8c12cc07ce539aec01 100644
--- a/default.nix
+++ b/default.nix
@@ -20,6 +20,8 @@   tmpl = pkgs.callPackage ./pkgs/tmpl {};
 
   # Other projects
 # It should return a set of nix derivations
+# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
+# It should return a set of nix derivations
 # This file describes your repository contents.
   tclip = pkgs.callPackage ./pkgs/tclip {};
 }
I pkgs/opengist/default.nix
diff --git a/pkgs/opengist/default.nix b/pkgs/opengist/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..d560a27f3f5de3fab414876a10bb1629f108db4e
--- /dev/null
+++ b/pkgs/opengist/default.nix
@@ -0,0 +1,27 @@
+{
+  buildGoModule,
+  fetchFromGitHub,
+  lib,
+  ...
+}:
+buildGoModule rec {
+  pname = "opengist";
+  version = "1.4.2";
+
+  src = fetchFromGitHub {
+    owner = "thomiceli";
+    repo = "opengist";
+    rev = "v${version}";
+    sha256 = "sha256-pDqjoeoVcsbLkAW9EGvIekeMoBqe6YR8LRgTiKS1wLA=";
+  };
+
+  vendorSha256 = "sha256-6qLiflF7ncQ6yXAAcxm9P4ZNFMOwPleKmmu1q6CpiXY=";
+
+  ldflags = ["-s" "-w" "-X=github.com/thomiceli/opengist/internal/config.OpengistVersion.Version=${version}"];
+
+  meta = with lib; {
+    description = "Self-hosted pastebin powered by Git, open-source alternative to Github Gist. ";
+    homepage = "https://github.com/thomiceli/opengist";
+    license = licenses.agpl3;
+  };
+}