2023-11-29 09:51:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, libressl
|
|
|
|
}:
|
|
|
|
|
2023-11-29 12:31:36 +00:00
|
|
|
let
|
|
|
|
self = stdenv.mkDerivation rec {
|
2023-11-29 09:51:42 +00:00
|
|
|
pname = "codemadness-frontends";
|
|
|
|
version = "0.8";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.codemadness.org/frontends";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-KRQZKP3i7EKidUejk3iw/Jh6Dpcp0NJZmRXCStMAtCM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# link dynamically
|
2024-05-19 23:31:54 +00:00
|
|
|
substituteInPlace Makefile --replace-fail \
|
2023-11-29 09:51:42 +00:00
|
|
|
'LIBTLS_LDFLAGS_STATIC = -ltls -lssl -lcrypto -static' \
|
|
|
|
'LIBTLS_LDFLAGS_STATIC = -ltls -lssl -lcrypto'
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libressl
|
|
|
|
];
|
|
|
|
|
2023-11-29 10:15:39 +00:00
|
|
|
makeFlags = [
|
|
|
|
"RANLIB:=$(RANLIB)"
|
|
|
|
];
|
|
|
|
|
2023-11-29 09:51:42 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-11-29 12:31:36 +00:00
|
|
|
passthru = {
|
|
|
|
v0_6 = self.overrideAttrs (_: rec {
|
|
|
|
version = "0.6";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.codemadness.org/frontends";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-VDHUY9xb6WyVQ/PcEJuo1HQTW1oox9yvVq0Xd7OGAt0=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2023-11-29 09:51:42 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-11-29 12:31:36 +00:00
|
|
|
};
|
|
|
|
in self
|
2023-11-29 09:51:42 +00:00
|
|
|
|