summaryrefslogtreecommitdiff
path: root/odin/strm.nix
blob: 33e605af3e2c2f3d1a1375a846a4cc4eafbe5549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, zsh, ffmpeg-full, youtube-dl, pv, notmuch }:

stdenv.mkDerivation {
  name = "strm";
  src = ./strm;

  phases = [ "unpackPhase" "buildPhase" "installPhase" ];

  inherit zsh ffmpeg-full youtube-dl pv notmuch;

  buildPhase = ''
    substituteAllInPlace download_youtube
    substituteAllInPlace cleanup_youtube
  '';

  installPhase = ''
    mkdir -p $out/bin

    install -m 755 -t $out/bin download_youtube cleanup_youtube
  '';
}