aboutsummaryrefslogtreecommitdiffstats
path: root/script/synckv6/default.nix
blob: 95a93318cf8108d02c406e2855135d15b9b9265a (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-synckv6";
  src = ./.;

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