82 lines
2 KiB
Nix
82 lines
2 KiB
Nix
final: prev: rec {
|
|
comic-sans = final.callPackage ./comic-sans {};
|
|
comic-code = final.callPackage ./comic-code {};
|
|
|
|
gobar = final.callPackage ./gobar {};
|
|
|
|
mk-enc-usb = final.callPackage ../extras/mk-enc-usb.nix {};
|
|
mk-encrypted-drive = final.callPackage ../extras/mk-encrypted-drive.nix {};
|
|
mk-raspberry-ext-drive = final.callPackage ../extras/mk-raspberry-ext-drive.nix {};
|
|
|
|
kitty-terminfo = final.runCommand "kitty-terminfo" {} ''
|
|
mkdir -p $out/share
|
|
cp -r ${./kitty-terminfo}/* $out/share
|
|
'';
|
|
|
|
mpd-headless =
|
|
(prev.mpdWithFeatures.override {
|
|
ffmpeg = final.ffmpeg_6-headless;
|
|
}) {
|
|
features = [
|
|
"audiofile"
|
|
"ffmpeg"
|
|
"faad"
|
|
"flac"
|
|
"mpg123"
|
|
"opus"
|
|
"vorbis"
|
|
"vorbisenc"
|
|
"lame"
|
|
"libsamplerate"
|
|
"libmpdclient"
|
|
"id3tag"
|
|
"expat"
|
|
"pcre"
|
|
"yajl"
|
|
"icu"
|
|
"sqlite"
|
|
"systemd"
|
|
"syslog"
|
|
"io_uring"
|
|
];
|
|
};
|
|
|
|
owncast = (prev.owncast.override {
|
|
ffmpeg = final.ffmpeg_6-headless;
|
|
}).overrideAttrs (_old: { doCheck = false; });
|
|
|
|
gotosocial = prev.gotosocial.overrideAttrs (_old: let
|
|
owner = "superseriousbusiness";
|
|
repo = "gotosocial";
|
|
|
|
version = "0.12.2";
|
|
source-hash = "sha256-ufxedg3SSHqYf5g1GXXSWA0pmb305kpjkjyjwCX126A=";
|
|
web-assets-hash = "sha256-vEjL9pZFBSt32ZqWZGvG112HA5nqkwY6uOQY3hBUWN4=";
|
|
|
|
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;
|
|
|
|
src = final.fetchFromGitHub {
|
|
inherit owner repo;
|
|
rev = "refs/tags/v${version}";
|
|
hash = source-hash;
|
|
};
|
|
|
|
passthru.web-assets = web-assets;
|
|
|
|
ldflags = ["-s" "-w" "-X main.Version=${version}"];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
tar xf ${web-assets}
|
|
mkdir -p $out/share/gotosocial
|
|
mv web $out/share/gotosocial/
|
|
'';
|
|
});
|
|
}
|