diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-05-27 09:14:48 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-05-27 09:14:48 +0200 |
commit | 06b78a6d42bd0f2d0cc1adccbe7d0e40214e46d1 (patch) | |
tree | a8266c5188e7083eaa6325b1ace56702631219a6 | |
parent | af9b15436ce0cddf6739b23cfd18ac9ddc0d45f4 (diff) | |
download | pnpkgs-06b78a6d42bd0f2d0cc1adccbe7d0e40214e46d1.tar.gz pnpkgs-06b78a6d42bd0f2d0cc1adccbe7d0e40214e46d1.zip |
-rw-r--r-- | default.nix | 1 | ||||
-rw-r--r-- | pkgs/html2gmi/default.nix | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 90aa294..2fb5c80 100644 --- a/default.nix +++ b/default.nix @@ -33,6 +33,7 @@ xccp = pkgs.callPackage ./pkgs/xccp { }; neatroff = pkgs.callPackage ./pkgs/neatroff { }; neatroff-utmac = pkgs.callPackage ./pkgs/neatroff/neatroff-utmac.nix { }; + html2gmi = pkgs.callPackage ./pkgs/html2gmi { }; st = pkgs.callPackage ./pkgs/larbs/st { }; dwm = pkgs.callPackage ./pkgs/larbs/dwm { }; diff --git a/pkgs/html2gmi/default.nix b/pkgs/html2gmi/default.nix new file mode 100644 index 0000000..57b1802 --- /dev/null +++ b/pkgs/html2gmi/default.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchFromGitHub, buildGoModule }: +with lib; + +let + pname = "html2gmi"; + version = "unstable-15-11-2020"; +in +buildGoModule { + inherit pname version; + + src = fetchFromGitHub { + owner = "LukeEmmet"; + repo = pname; + rev = "928eec33eeabae7443d5a6abcbfbfbc9f95ebe8a"; + sha256 = "0v8hys174nrqjn1xwc2ij097hijpbkad0hx2w1l2mngfkgi0liwb"; + }; + + vendorSha256 = "016cgpa5z1l1pn3f80r2sl0sxwsnrvychsbfcr2hvb9qi1lm0wkl"; + + buildPhase = '' + go build -o html2gmi + ''; + + installPhase = '' + mkdir -p $out/bin + cp html2gmi $out/bin + ''; + + meta = { + description = "A command line application to convert HTML to GMI (Gemini text/gemini)"; + homepage = "https://github.com/LukeEmmet/html2gmi"; + license = "MIT"; + platforms = platforms.linux; + }; +} |