aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2023-03-16 14:01:24 +0100
committerstuebinm2023-03-16 14:01:24 +0100
commiteb026dc35588fc1fb4051058e65468610fdfa06a (patch)
tree7d1d727db498e784f3fa2603ac95dd302b806028
parent7798666c81b390183e2e227232d936abf0cc4a65 (diff)
add assets to nix derivation
-rw-r--r--default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index f714fdf..a929aed 100644
--- a/default.nix
+++ b/default.nix
@@ -47,6 +47,9 @@ let
description = "tracktrain tracks trains on their traintracks";
license = "unknown";
mainProgram = "tracktrain";
+ postInstall = ''
+ cp -r $src/assets $out/assets
+ '';
};
haskellPackages = if compiler == "default"
@@ -75,6 +78,7 @@ let
buildPhase = ''
mkdir -p $out
cp -r $src/bin $out
+ cp -r $src/assets $out/assets
'';
phases = [ "buildPhase" ];
};