diff --git a/README.md b/README.md index 84a09e56324985bf9801c324cc716f4532266117..3e730d46f5ea906d2c01f4fa83288debe06d1de0 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,6 @@ # jolheiser NUR |Package|Version| |-------|-------| +|[opengist](https://github.com/thomiceli/opengist)|`1.6.1`| |[prospect-mail](https://github.com/julian-alarcon/prospect-mail)|`0a85d2a0136fc0d3312c3ba59d8e5d864e601db5`| diff --git a/default.nix b/default.nix index 7fdbe028b1a4c0ac8f835beb22a7049dbd13a28c..caba69d79ba33c9a256779d4decd88d5b6d472c1 100644 --- a/default.nix +++ b/default.nix @@ -12,5 +12,7 @@ modules = import ./modules; # NixOS modules overlays = import ./overlays; # nixpkgs overlays # This file describes your repository contents. +# commands such as: +# This file describes your repository contents. # It should NOT import . Instead, you should take pkgs as an argument. } diff --git a/pkgs/opengist/default.nix b/pkgs/opengist/default.nix new file mode 100644 index 0000000000000000000000000000000000000000..1a65e952238c16ffc5ba7759630f50a5b4816b65 --- /dev/null +++ b/pkgs/opengist/default.nix @@ -0,0 +1,28 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, + ... +}: +buildGoModule rec { + pname = "opengist"; + version = "1.6.1"; + + src = fetchFromGitHub { + owner = "thomiceli"; + repo = "opengist"; + rev = "v${version}"; + sha256 = "sha256-rJ8oiH08kSSFNgPHKGo68Oi1i3L1SEJyHuzoxKMOZME="; + }; + + vendorSha256 = "sha256-IorqXJKzUTUL5zfKRipZaJtRlwVOmTwolJXFG/34Ais="; + doCheck = false; + + 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; + }; +}