nix-files/pkgs/additional/codemadness-frontends/default.nix

51 lines
1.0 KiB
Nix

{ lib
, stdenv
, fetchgit
, libressl
}:
stdenv.mkDerivation rec {
pname = "codemadness-frontends";
version = "0.8";
src = fetchgit {
url = "git://git.codemadness.org/frontends";
rev = version;
hash = "sha256-KRQZKP3i7EKidUejk3iw/Jh6Dpcp0NJZmRXCStMAtCM=";
};
postPatch = ''
# link dynamically
substituteInPlace Makefile --replace \
'LIBTLS_LDFLAGS_STATIC = -ltls -lssl -lcrypto -static' \
'LIBTLS_LDFLAGS_STATIC = -ltls -lssl -lcrypto'
'';
buildInputs = [
libressl
];
makeFlags = [
"RANLIB:=$(RANLIB)"
];
installPhase = ''
runHook preInstall
install -Dm755 youtube/cgi $out/bin/youtube-cgi
install -Dm755 youtube/gopher $out/bin/youtube-gopher
install -Dm755 youtube/cli $out/bin/youtube-cli
runHook postInstall
'';
meta = with lib; {
platforms = platforms.linux;
description = "A less resource-heavy Youtube interface";
maintainers = with maintainers; [ colinsane ];
homepage = "https://codemadness.org/idiotbox.html";
license = licenses.isc;
};
}