From 2c6d01d2c9b7735b7736dfaf325a44c46ccea00f Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sun, 17 Mar 2024 02:03:28 -0700 Subject: [PATCH] Fix nix sync-etc derivation --- sync/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sync/default.nix b/sync/default.nix index b2bec52..4f7368c 100644 --- a/sync/default.nix +++ b/sync/default.nix @@ -1,17 +1,18 @@ -{ stdenvNoCC, python3, git, rsync }: +{ python3Packages, python3, git, rsync }: -stdenvNoCC.mkDerivation { +python3Packages.buildPythonApplication { pname = "ocf-sync-etc"; version = "2024-03-16"; + format = "other"; dontUnpack = true; installPhase = '' - install -Dm755 ${./sync-etc} $out/bin/sync-etc + mkdir -p $out/bin + cp ${./sync-etc} $out/bin/sync-etc ''; propagatedBuildInputs = [ - python3 git rsync ];