From 6338573a8a4b416d5bce384dac712197f90637dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 7 Jun 2020 18:46:27 +0200 Subject: Add comment engine --- pkgs/commento/default.nix | 20 ++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 pkgs/commento/default.nix (limited to 'pkgs') diff --git a/pkgs/commento/default.nix b/pkgs/commento/default.nix new file mode 100644 index 0000000..6361583 --- /dev/null +++ b/pkgs/commento/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, patchelfUnstable, autoPatchelfHook }: +stdenv.mkDerivation rec { + pname = "commento"; + version = "v1.8.0"; + name = "${pname}-${version}"; + src = fetchurl { + url = "https://dl.commento.io/release/${name}-linux-glibc-amd64.tar.gz"; + sha256 = "1j88b16hdx3i8nsq56581cscij65slgbsa6yfj73ybbg1585axxs"; + }; + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + unpackPhase = '' + tar --one-top-level=${name} -xf "$src" + ''; + installPhase = '' + cp -a ${name} $out + ''; + postFixup = '' + ${patchelfUnstable}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/commento + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 3b0e937..03fee4f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -8,6 +8,7 @@ rec { myEnvironments = callPackage ../environments {}; boinctui = callPackage ./boinctui {}; cnagios = callPackage ./cnagios { inherit mylibs; }; + commento = callPackage ./commento {}; duply = callPackage ./duply {}; flrn = callPackage ./flrn { inherit mylibs; slang = callPackage ./slang_1 {}; }; genius = callPackage ./genius {}; -- cgit v1.2.3