mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
nix: add u2c
This commit is contained in:
parent
7256189243
commit
71b052a98a
24
contrib/package/nix/u2c/default.nix
Normal file
24
contrib/package/nix/u2c/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
}
|
|
@ -12,10 +12,14 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
|
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
|
||||||
overlays.default = self: super: {
|
overlays.default = self: super: rec {
|
||||||
copyparty = self.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
|
copyparty = self.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
|
||||||
ffmpeg = self.ffmpeg-full;
|
ffmpeg = self.ffmpeg-full;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
u2c = super.callPackage ./contrib/package/nix/u2c {
|
||||||
|
inherit copyparty;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// flake-utils.lib.eachDefaultSystem (
|
// flake-utils.lib.eachDefaultSystem (
|
||||||
|
@ -31,7 +35,7 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = {
|
packages = {
|
||||||
inherit (pkgs) copyparty;
|
inherit (pkgs) copyparty u2c;
|
||||||
default = self.packages.${system}.copyparty;
|
default = self.packages.${system}.copyparty;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue