2023-09-16 16:06:16 +01:00
|
|
|
final: prev: rec {
|
2022-12-04 13:45:43 +00:00
|
|
|
comic-sans = final.callPackage ./comic-sans {};
|
|
|
|
comic-code = final.callPackage ./comic-code {};
|
2023-08-29 14:07:17 +01:00
|
|
|
|
|
|
|
gobar = final.callPackage ./gobar {};
|
|
|
|
|
2023-08-18 20:00:23 +01:00
|
|
|
mk-enc-usb = final.callPackage ../extras/mk-enc-usb.nix {};
|
2023-09-20 15:46:20 +01:00
|
|
|
mk-encrypted-drive = final.callPackage ../extras/mk-encrypted-drive.nix {};
|
2023-09-13 19:26:50 +01:00
|
|
|
mk-raspberry-ext-drive = final.callPackage ../extras/mk-raspberry-ext-drive.nix {};
|
2023-08-28 18:50:25 +01:00
|
|
|
|
2023-09-19 22:30:02 +01:00
|
|
|
kitty-terminfo = final.runCommand "kitty-terminfo" {} ''
|
|
|
|
mkdir -p $out/share
|
2023-09-20 18:04:33 +01:00
|
|
|
cp -r ${./kitty-terminfo}/* $out/share
|
2023-09-19 22:30:02 +01:00
|
|
|
'';
|
|
|
|
|
2024-01-25 11:53:48 +00:00
|
|
|
# Remove when fixed in upstream
|
|
|
|
jellyfin-ffmpeg =
|
|
|
|
(prev.ffmpeg_6-headless.override {
|
|
|
|
withAribcaption = false; # FIXME remove when updating past version 6.1
|
|
|
|
})
|
|
|
|
.overrideAttrs (old: rec {
|
|
|
|
pname = "jellyfin-ffmpeg";
|
|
|
|
version = "6.0.1-1";
|
|
|
|
|
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
owner = "jellyfin";
|
|
|
|
repo = "jellyfin-ffmpeg";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-LMwGxx++z6TpZLnpeRGraid4653Mp8T4pY5EP4Z7GXY=";
|
|
|
|
};
|
|
|
|
|
2024-02-08 17:46:00 +00:00
|
|
|
patches = [];
|
|
|
|
|
2024-01-25 11:53:48 +00:00
|
|
|
buildInputs = old.buildInputs ++ [prev.chromaprint];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
old.configureFlags
|
|
|
|
++ [
|
|
|
|
"--extra-version=Jellyfin"
|
|
|
|
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
|
|
|
|
"--enable-chromaprint"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for file in $(cat debian/patches/series); do
|
|
|
|
patch -p1 < debian/patches/$file
|
|
|
|
done
|
|
|
|
|
|
|
|
${old.postPatch or ""}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with final.lib; {
|
|
|
|
description = "${old.meta.description} (Jellyfin fork)";
|
|
|
|
homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [justinas];
|
|
|
|
pkgConfigModules = ["libavutil"];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2023-10-30 14:27:25 +00:00
|
|
|
mpd-headless =
|
|
|
|
(prev.mpdWithFeatures.override {
|
|
|
|
ffmpeg = final.ffmpeg_6-headless;
|
|
|
|
}) {
|
|
|
|
features = [
|
|
|
|
"audiofile"
|
2023-11-03 19:49:30 +00:00
|
|
|
"ffmpeg"
|
|
|
|
"faad"
|
2023-10-30 14:27:25 +00:00
|
|
|
"flac"
|
2023-11-03 19:49:30 +00:00
|
|
|
"mpg123"
|
2023-10-30 14:27:25 +00:00
|
|
|
"opus"
|
|
|
|
"vorbis"
|
|
|
|
"vorbisenc"
|
|
|
|
"lame"
|
|
|
|
"libsamplerate"
|
|
|
|
"libmpdclient"
|
|
|
|
"id3tag"
|
|
|
|
"expat"
|
|
|
|
"pcre"
|
|
|
|
"yajl"
|
|
|
|
"icu"
|
|
|
|
"sqlite"
|
|
|
|
"systemd"
|
|
|
|
"syslog"
|
|
|
|
"io_uring"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-20 17:38:38 +00:00
|
|
|
owncast =
|
|
|
|
(prev.owncast.override {
|
|
|
|
ffmpeg = final.ffmpeg_6-headless;
|
|
|
|
})
|
|
|
|
.overrideAttrs (_old: {doCheck = false;});
|
2023-10-29 23:04:08 +00:00
|
|
|
|
2023-09-11 23:22:18 +01:00
|
|
|
gotosocial = prev.gotosocial.overrideAttrs (_old: let
|
2023-08-20 22:28:18 +01:00
|
|
|
owner = "superseriousbusiness";
|
|
|
|
repo = "gotosocial";
|
|
|
|
|
2024-02-08 17:46:00 +00:00
|
|
|
version = "0.13.2";
|
|
|
|
source-hash = "sha256-VQnE4Xff4gtjQ6V2B42zK8UjosBWEMgcL/3Q8S0wc5Q=";
|
|
|
|
web-assets-hash = "sha256-Iyqn0/VyigmOhlyyz1NfvNIXmWtF617QbWzM2c7jHWw=";
|
2023-08-20 22:28:18 +01:00
|
|
|
|
|
|
|
web-assets = final.fetchurl {
|
|
|
|
url = "https://github.com/${owner}/${repo}/releases/download/v${version}/${repo}_${version}_web-assets.tar.gz";
|
|
|
|
hash = web-assets-hash;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
inherit version;
|
2023-09-01 01:46:14 +01:00
|
|
|
|
2023-08-20 22:28:18 +01:00
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
inherit owner repo;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = source-hash;
|
|
|
|
};
|
|
|
|
|
2023-09-01 01:46:14 +01:00
|
|
|
passthru.web-assets = web-assets;
|
|
|
|
|
2023-08-20 22:28:18 +01:00
|
|
|
ldflags = ["-s" "-w" "-X main.Version=${version}"];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
tar xf ${web-assets}
|
|
|
|
mkdir -p $out/share/gotosocial
|
|
|
|
mv web $out/share/gotosocial/
|
|
|
|
'';
|
|
|
|
});
|
2021-12-20 23:48:26 +00:00
|
|
|
}
|