mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 21:43:08 -07:00
nix: don't copy stable webdeps for unstable copyparty
This commit is contained in:
parent
caf831fc28
commit
43d48b23fe
|
|
@ -112,18 +112,6 @@ buildPythonApplication {
|
||||||
pname = "copyparty";
|
pname = "copyparty";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
postPatch = lib.optionalString (!stable) ''
|
postPatch = lib.optionalString (!stable) ''
|
||||||
old_src="$(mktemp -d)"
|
|
||||||
tar -C "$old_src" -xf ${stableSrc}
|
|
||||||
declare -a folders
|
|
||||||
folders=("$old_src"/*)
|
|
||||||
count_folders="''${#folders[@]}"
|
|
||||||
if [[ $count_folders != 1 ]]; then
|
|
||||||
declare -p folders
|
|
||||||
echo "Expected 1 folder, found $count_folders" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
old_src_folder="''${folders[0]}"
|
|
||||||
cp -r "$old_src_folder"/copyparty/web/deps copyparty/web/deps
|
|
||||||
sed -i 's/^CODENAME =.*$/CODENAME = "${unstableCodename}"/' copyparty/__version__.py
|
sed -i 's/^CODENAME =.*$/CODENAME = "${unstableCodename}"/' copyparty/__version__.py
|
||||||
${lib.optionalString (copypartyFlake != null) (with dateStringsShort; ''
|
${lib.optionalString (copypartyFlake != null) (with dateStringsShort; ''
|
||||||
sed -i 's/^BUILD_DT =.*$/BUILD_DT = (${year}, ${month}, ${day})/' copyparty/__version__.py
|
sed -i 's/^BUILD_DT =.*$/BUILD_DT = (${year}, ${month}, ${day})/' copyparty/__version__.py
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue