blob: d57477b28058fd63e7a9303a1aef60de6515d44c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
rustPlatform,
python3,
makeWrapper,
fetchurl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "yt";
version = "0.1.0";
src = fetchurl {
url = "https://git.vhack.eu/soispha/clients/yt/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
sha256 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
};
nativeBuildInputs = [
makeWrapper
python3.withPackages
(ps: [ps.yt-dlp])
];
postBuild = ''
install -m755 ./python_update/raw_update.py -D "$out/bin/raw_update.py"
patchShebangs "$out/bin/raw_update.py"
'';
postInstall = ''
wrapProgram $out/bin/yt \
--prefix PATH : $out/bin/
'';
})
|