dust: drop lofi script

https://github.com/yt-dlp/yt-dlp/issues/10108
This commit is contained in:
Guanran Wang 2024-08-15 22:27:03 +08:00
parent ae6ab3ca6e
commit 16898eaa7c
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
4 changed files with 2 additions and 52 deletions

View file

@ -1,8 +1,4 @@
{
pkgs,
inputs,
...
}: {
{pkgs, ...}: {
imports =
[
./theme.nix
@ -38,7 +34,6 @@
loupe
mousai
seahorse
inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.scripts.lofi
];
programs.obs-studio.enable = true;

View file

@ -1,20 +1,10 @@
# NOTE: 301: All packages are migrated to `github:Guanran928/nur-packages`,
# only keeping some packages that only fits for personal use.
pkgs: let
inherit (pkgs) lib callPackage;
inherit (pkgs) callPackage;
in {
# https://github.com/NixOS/nixpkgs/pull/308720
pixivfe = callPackage ./pixivfe.nix {};
background = pkgs.nixos-artwork.wallpapers.nineish-dark-gray.src;
scripts = lib.makeScope pkgs.newScope (self: let
inherit (self) callPackage;
in {
# util
makeScript = callPackage ./scripts/makeScript.nix {};
# scripts
lofi = callPackage ./scripts/lofi.nix {};
});
}

View file

@ -1,14 +0,0 @@
{
makeScript,
coreutils,
mpv,
fetchurl,
}:
makeScript {
name = "lofi";
runtimeInputs = [coreutils mpv];
src = fetchurl {
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
};
}

View file

@ -1,21 +0,0 @@
{
lib,
runtimeShell,
runCommandLocal,
makeBinaryWrapper,
}: {
name,
src,
runtimeInputs ? [],
}:
# FIXME: incorrect argv0
runCommandLocal name {
inherit src;
nativeBuildInputs = [makeBinaryWrapper];
meta.mainProgram = name;
} ''
install -Dm755 $src $out/bin/.$name
makeBinaryWrapper ${runtimeShell} $out/bin/$name \
--add-flags $out/bin/.$name \
--prefix PATH : ${lib.makeBinPath runtimeInputs}
''