Fix camptules

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-01-18 00:24:32 +01:00
parent 06e5e76b18
commit 26a5fca73e
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -19,16 +19,29 @@ nglib.makeSystem {
enable = true;
package =
let
youtube-dlc = pkgs.writeShellScriptBin "youtube-dlc"
yt-dlp = pkgs.yt-dlp.overrideAttrs (old:
rec {
version = "2021.12.1";
src = pkgs.fetchFromGitHub {
owner = "yt-dlp";
repo = "yt-dlp";
rev = "46383212b336012f14b79839a5b344d35a6c90e4";
sha256 = "sha256-SlJXGsEmJRRMxUx0l3cwcGjJX6YhNNtg7inqHn/ckeE=";
};
}
);
youtube-dl = pkgs.writeShellScriptBin "youtube-dl"
''
${pkgs.youtube-dl}/bin/youtube-dl "$@"
${yt-dlp}/bin/yt-dlp "$@"
'';
in
pkgs.writeShellScriptBin "camptules"
''
export PATH=$PATH:${youtube-dlc}/bin:${pkgs.ffmpeg}/bin
${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules
'';
pkgs.writeShellScriptBin "camptules"
''
export PATH=$PATH:${youtube-dl}/bin:${pkgs.ffmpeg}/bin
echo new
${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules
'';
};
};
});