aboutsummaryrefslogtreecommitdiffstats
path: root/script/archiver/default.nix
blob: 4a464e0ac6cf8fa712d2d67a6d70d690809efa29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs ? import <nixpkgs> { } }: with pkgs;

stdenv.mkDerivation {
  name = "oeuf-archiver";
  src = ./.;

  buildInputs = [ bash rclone oeuf-bundleparquet ];
  nativeBuildInputs = [ makeWrapper ];
  installPhase = ''
    mkdir -p $out/bin
    cp oeuf-archiver.sh $out/bin/oeuf-archiver
    wrapProgram $out/bin/oeuf-archiver \
      --prefix PATH : ${lib.makeBinPath [ bash rclone oeuf-bundleparquet ]}
  '';
}