From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- flakes/mypackages/pkgs/commento/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 flakes/mypackages/pkgs/commento/default.nix (limited to 'flakes/mypackages/pkgs/commento') diff --git a/flakes/mypackages/pkgs/commento/default.nix b/flakes/mypackages/pkgs/commento/default.nix new file mode 100644 index 0000000..6361583 --- /dev/null +++ b/flakes/mypackages/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 + ''; +} -- cgit v1.2.3