~andir/nixpkgs-dev

gmni: init at 2021-03-26 v4 PROPOSED

Ben Sima: 2
 gmni: init at 2021-03-26
 gmnisrv: init at 2021-03-26

 4 files changed, 53 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~andir/nixpkgs-dev/patches/21641/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v4 1/2] gmni: init at 2021-03-26 Export this patch

---
Incorporated changes suggested in the GitHub PR: https://github.com/NixOS/nixpkgs/pull/118056

 .../networking/browsers/gmni/default.nix      | 24 +++++++++++++++++++
 pkgs/top-level/all-packages.nix               |  2 ++
 2 files changed, 26 insertions(+)
 create mode 100644 pkgs/applications/networking/browsers/gmni/default.nix

diff --git a/pkgs/applications/networking/browsers/gmni/default.nix b/pkgs/applications/networking/browsers/gmni/default.nix
new file mode 100644
index 00000000000..415789fd0d2
--- /dev/null
+++ b/pkgs/applications/networking/browsers/gmni/default.nix
@@ -0,0 +1,24 @@
{ stdenv, lib, fetchFromSourcehut, pkg-config, bearssl, scdoc }:

stdenv.mkDerivation rec {
  name = "gmni";
  version = "unstable-2021-03-26";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "gmni";
    rev = "77b73efbcd3ea7ed9e3e4c0aa19d9247e21d3c87";
    sha256 = "1wvnzyv7vyddcd39y6q5aflpnnsdl4k4y5aj5ssb7vgkld0h1b7r";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ bearssl scdoc ];

  meta = with lib; {
    description = "A Gemini client";
    homepage = "https://git.sr.ht/~sircmpwn/gmni";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ bsima ];
    platforms = platforms.all;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e0f37eda9df..e4f7eb34c97 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1372,6 +1372,8 @@ in

  glasgow = with python3Packages; toPythonApplication glasgow;

  gmni = callPackage ../applications/networking/browsers/gmni { };

  goimapnotify = callPackage ../tools/networking/goimapnotify { };

  gojsontoyaml = callPackage ../development/tools/gojsontoyaml { };
-- 
2.28.0

[PATCH v4 2/2] gmnisrv: init at 2021-03-26 Export this patch

---
Incorporated changes suggested in the GitHub PR: https://github.com/NixOS/nixpkgs/pull/118056
 pkgs/servers/gemini/gmnisrv/default.nix | 25 +++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix         |  2 ++
 2 files changed, 27 insertions(+)
 create mode 100644 pkgs/servers/gemini/gmnisrv/default.nix

diff --git a/pkgs/servers/gemini/gmnisrv/default.nix b/pkgs/servers/gemini/gmnisrv/default.nix
new file mode 100644
index 00000000000..41d7a7ddc10
--- /dev/null
+++ b/pkgs/servers/gemini/gmnisrv/default.nix
@@ -0,0 +1,25 @@
{ stdenv, lib, fetchFromSourcehut, pkg-config, openssl, mime-types, scdoc }:

stdenv.mkDerivation rec {
  name = "gmnvisrv";
  version = "unstable-2021-03-26";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "gmnisrv";
    rev = "f23ec10a6d66c574bbf718c4b10f2cf91ea8daef";
    sha256 = "1d9rjx0s092yfzjxd2yvzixhqgg883nlnmsysgp21w75n2as354n";
  };

  MIMEDB = "${mime-types}/etc/mime.types";
  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ openssl mime-types scdoc ];

  meta = with lib; {
    description = "A simple Gemini protocol server";
    homepage = "https://git.sr.ht/~sircmpwn/gmnisrv";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ bsima ];
    platforms = platforms.all;
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e4f7eb34c97..8d6fef3187c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1374,6 +1374,8 @@ in

  gmni = callPackage ../applications/networking/browsers/gmni { };

  gmnisrv = callPackage ../servers/gemini/gmnisrv { };

  goimapnotify = callPackage ../tools/networking/goimapnotify { };

  gojsontoyaml = callPackage ../development/tools/gojsontoyaml { };
-- 
2.28.0