add some pkgs to amd-workstation
This commit is contained in:
parent
bab096e629
commit
edacd2628f
@ -134,7 +134,12 @@
|
|||||||
pkgs.exercism
|
pkgs.exercism
|
||||||
pkgs.packwiz
|
pkgs.packwiz
|
||||||
pkgs.streamrip
|
pkgs.streamrip
|
||||||
|
pkgs.nix-diff
|
||||||
|
|
||||||
|
pkgs.libsForQt5.ark
|
||||||
|
pkgs.libsForQt5.dolphin
|
||||||
|
pkgs.nh
|
||||||
|
pkgs.yt-archivist
|
||||||
pkgs.modprobed-db
|
pkgs.modprobed-db
|
||||||
];
|
];
|
||||||
xdg.configFile."distrobox/distrobox.conf".text = ''
|
xdg.configFile."distrobox/distrobox.conf".text = ''
|
||||||
|
@ -30,6 +30,7 @@ with lib; {
|
|||||||
};
|
};
|
||||||
xray = master.xray;
|
xray = master.xray;
|
||||||
youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
|
youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
|
||||||
|
yt-archivist = prev.callPackage ./packages/yt-archivist { };
|
||||||
yt-dlp = master.yt-dlp;
|
yt-dlp = master.yt-dlp;
|
||||||
steam = prev.steam.override {
|
steam = prev.steam.override {
|
||||||
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
|
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
|
|
||||||
{ stdenv, pkgs, term }:
|
{ stdenvNoCC, writeShellScriptBin, libnotify, mpv, wl-clipboard, term }:
|
||||||
let
|
let
|
||||||
yt-mpv = pkgs.writeShellScriptBin "yt-mpv" ''
|
yt-mpv = writeShellScriptBin "yt-mpv" ''
|
||||||
if [[ "$1" != "--no-video" ]]; then
|
if [[ "$1" != "--no-video" ]]; then
|
||||||
${pkgs.libnotify}/bin/notify-send -t 3000 --icon=video-television "Playing Video" "$(${pkgs.wl-clipboard}/bin/wl-paste)"
|
${libnotify}/bin/notify-send -t 3000 --icon=video-television "Playing Video" "$(${wl-clipboard}/bin/wl-paste)"
|
||||||
${pkgs.mpv}/bin/mpv --fs "$(${pkgs.wl-clipboard}/bin/wl-paste)"
|
${mpv}/bin/mpv --fs "$(${wl-clipboard}/bin/wl-paste)"
|
||||||
else
|
else
|
||||||
${pkgs.libnotify}/bin/notify-send -t 3000 --icon=video-television "Playing Audio" "$(${pkgs.wl-clipboard}/bin/wl-paste)"
|
${libnotify}/bin/notify-send -t 3000 --icon=video-television "Playing Audio" "$(${wl-clipboard}/bin/wl-paste)"
|
||||||
${term} -e ${pkgs.mpv}/bin/mpv --no-video "$(${pkgs.wl-clipboard}/bin/wl-paste)"
|
${term} -e ${mpv}/bin/mpv --no-video "$(${wl-clipboard}/bin/wl-paste)"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "youtube-to-mpv";
|
name = "youtube-to-mpv";
|
||||||
src = yt-mpv;
|
src = yt-mpv;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
32
profiles/packages/yt-archivist/default.nix
Normal file
32
profiles/packages/yt-archivist/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, perl, yt-dlp, ffmpeg, coreutils }:
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
name = "yt-archivist";
|
||||||
|
version = "3.4.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "TheFrenchGhosty";
|
||||||
|
repo = "TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-nteenn+XLCyp1WPaCUth2zAh0nhawYLEQEKD+L93nJM=";
|
||||||
|
};
|
||||||
|
patches = [ ./fix.patch ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp "scripts/Archivist Scripts/Archivist Scripts (No Comments)/Channels/Channels.sh" $out/bin/yt-archivist
|
||||||
|
cp "scripts/Archivist Scripts/Recent Scripts/Channels/Channels.sh" $out/bin/yt-archivist-recent
|
||||||
|
'';
|
||||||
|
postFixup = ''
|
||||||
|
for f in $out/bin/*; do
|
||||||
|
wrapProgram $f \
|
||||||
|
--set PATH ${lib.makeBinPath [ perl yt-dlp ffmpeg coreutils ]}
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
meta = with lib; {
|
||||||
|
description = "The ultimate collection of scripts for YouTube-DL";
|
||||||
|
homepage = "https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ataraxiasjel ];
|
||||||
|
};
|
||||||
|
}
|
24
profiles/packages/yt-archivist/fix.patch
Normal file
24
profiles/packages/yt-archivist/fix.patch
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user