summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-05 22:09:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-05 22:09:27 +0200
commitc70f6b579b147775f58021dac5ad38d5bc474054 (patch)
tree693d0eb29702279b236f6f4cf891652cca8650cd
parent6ec45a318d23eb0f84457a1f2b111f848fc8aec2 (diff)
downloadnixos-c70f6b579b147775f58021dac5ad38d5bc474054.tar
nixos-c70f6b579b147775f58021dac5ad38d5bc474054.tar.gz
nixos-c70f6b579b147775f58021dac5ad38d5bc474054.tar.bz2
nixos-c70f6b579b147775f58021dac5ad38d5bc474054.tar.xz
nixos-c70f6b579b147775f58021dac5ad38d5bc474054.zip
-rw-r--r--custom/uucp-mediaserver/scripts.nix22
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 '';