From 1e07f76fa847e55a7043afd516a5b185af7d985e Mon Sep 17 00:00:00 2001 From: vector1dev Date: Tue, 6 Jun 2023 12:36:00 +0300 Subject: [PATCH 1/2] maintainers: add vector1dev --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c4df505876fd..90f0a3e94532 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16663,6 +16663,12 @@ github = "vdot0x23"; githubId = 40716069; }; + vector1dev = { + name = "vector1dev"; + matrix = "@vector1dev:vector1.dev"; + github = "vector1dev"; + githubId = 127302590; + }; veehaitch = { name = "Vincent Haupert"; email = "mail@vincent-haupert.de"; From 84147995a72c9eab7f9f7ccbca00492f5c0bd2ad Mon Sep 17 00:00:00 2001 From: vector1dev Date: Tue, 6 Jun 2023 12:36:19 +0300 Subject: [PATCH 2/2] lenpaste: init at 1.3 --- pkgs/servers/lenpaste/default.nix | 35 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/servers/lenpaste/default.nix diff --git a/pkgs/servers/lenpaste/default.nix b/pkgs/servers/lenpaste/default.nix new file mode 100644 index 000000000000..bb9bf30899f5 --- /dev/null +++ b/pkgs/servers/lenpaste/default.nix @@ -0,0 +1,35 @@ +{ lib, buildGoModule, fetchFromGitea }: + +buildGoModule rec { + pname = "lenpaste"; + version = "1.3"; + + src = fetchFromGitea { + domain = "git.lcomrade.su"; + owner = "root"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-d+FjfEbInlxUllWIoVLwQRdRWjxBLTpNHYn+oYU3fBc="; + }; + + vendorSha256 = "sha256-PL0dysBn1+1BpZWFW/EUFJtqkabt+XN00YkAz8Yf2LQ="; + + ldflags = [ + "-w" + "-s" + "-X main.Version=${version}" + ]; + + subPackages = [ "cmd" ]; + + postInstall = '' + mv $out/bin/cmd $out/bin/lenpaste + ''; + + meta = with lib; { + description = "A web service that allows you to share notes anonymously, an alternative to pastebin.com"; + homepage = "https://git.lcomrade.su/root/lenpaste"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ vector1dev ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4d70eba4be60..ffaea6c6cef6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5351,6 +5351,8 @@ with pkgs; lexicon = callPackage ../tools/admin/lexicon { }; + lenpaste = callPackage ../servers/lenpaste { }; + lief = callPackage ../development/libraries/lief { python = python3; };