diff options
-rw-r--r-- | custom/uucp-mediaserver/scripts.nix | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/custom/uucp-mediaserver/scripts.nix b/custom/uucp-mediaserver/scripts.nix index 5020a60a..4acb8619 100644 --- a/custom/uucp-mediaserver/scripts.nix +++ b/custom/uucp-mediaserver/scripts.nix | |||
@@ -14,20 +14,24 @@ in stdenv.mkDerivation { | |||
14 | name = "uucp-mediaserver"; | 14 | name = "uucp-mediaserver"; |
15 | src = ./scripts; | 15 | src = ./scripts; |
16 | 16 | ||
17 | phases = [ "installPhase" ]; | 17 | phases = [ "buildPhase" "installPhase" ]; |
18 | 18 | ||
19 | inherit (config) queueDir; | 19 | inherit (config) queueDir; |
20 | |||
21 | buildPhase = '' | ||
22 | substituteAllInPlace $out/libexec/mediaspace | ||
23 | substituteAllInPlace $out/libexec/queue | ||
24 | substituteAllInPlace $out/libexec/queuespace | ||
25 | substituteAllInPlace $out/libexec/queuestatus | ||
26 | substituteAllInPlace $out/libexec/update-queuesize | ||
27 | ''; | ||
20 | 28 | ||
21 | installPhase = '' | 29 | installPhase = '' |
22 | mkdir -p $out/libexec | 30 | mkdir -p $out/libexec |
23 | |||
24 | substituteFile $src/mediaspace $out/libexec/mediaspace | ||
25 | substituteFile $src/queue $out/libexec/queue | ||
26 | substituteFile $src/queuesize $out/libexec/queuesize | ||
27 | substituteFile $src/queuestatus $out/libexec/queuestatus | ||
28 | substituteFile $src/update-queuesize $out/libexec/update-queuesize | ||
29 | 31 | ||
30 | mkdir -p $out/bin | 32 | install -m 755 -t $out/libexec mediaspace queue queuespace queuestatus update-queuesize |
33 | |||
34 | mkdir -p $out/bin | ||
31 | 35 | ||
32 | ${concatStringsSep "\n" (map mkSymlinks config.remoteNodes)} | 36 | ${concatStringsSep "\n" (map mkSymlinks config.remoteNodes)} |
33 | ''; | 37 | ''; |