From 1396eb2c58da6bcbba060e3ab27be67b728be367 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 29 Nov 2023 09:51:42 +0000 Subject: [PATCH] codemadness-frontends: init at 0.8 --- .../codemadness-frontends/default.nix | 46 +++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/additional/codemadness-frontends/default.nix diff --git a/pkgs/additional/codemadness-frontends/default.nix b/pkgs/additional/codemadness-frontends/default.nix new file mode 100644 index 000000000..e7074e61e --- /dev/null +++ b/pkgs/additional/codemadness-frontends/default.nix @@ -0,0 +1,46 @@ +{ 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 + ]; + + 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; + }; +} + diff --git a/pkgs/default.nix b/pkgs/default.nix index 32e748132..86e752847 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -25,6 +25,7 @@ let bootpart-uefi-x86_64 = callPackage ./additional/bootpart-uefi-x86_64 { }; cargoDocsetHook = callPackage ./additional/cargo-docset/hook.nix { }; chatty-latest = callPackage ./additional/chatty-latest { }; + codemadness-frontends = callPackage ./additional/codemadness-frontends { }; eg25-control = callPackage ./additional/eg25-control { }; eg25-manager = callPackage ./additional/eg25-manager { }; feeds = lib.recurseIntoAttrs (callPackage ./additional/feeds { });