mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
25 lines
464 B
Nix
25 lines
464 B
Nix
{
|
|
stdenvNoCC,
|
|
copyparty,
|
|
python312,
|
|
makeBinaryWrapper,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "u2c";
|
|
inherit (copyparty) version meta;
|
|
src = ../../../..;
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm444 bin/u2c.py -t $out/share/copyparty
|
|
mkdir $out/bin
|
|
makeWrapper ${python312.interpreter} $out/bin/u2c \
|
|
--add-flag $out/share/copyparty/u2c.py
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|