1 { stdenv, fetchurl, patchelfUnstable, autoPatchelfHook }:
2 stdenv.mkDerivation rec {
5 name = "${pname}-${version}";
7 url = "https://dl.commento.io/release/${name}-linux-glibc-amd64.tar.gz";
8 sha256 = "1j88b16hdx3i8nsq56581cscij65slgbsa6yfj73ybbg1585axxs";
10 phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
12 tar --one-top-level=${name} -xf "$src"
18 ${patchelfUnstable}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/commento