@@ -13,6 +13,12 @@ stdenv.mkDerivation {
1313 # the original configure looks for things in the FHS path
1414 # I have modified it to take environment vars
1515 ./0001-mangle-configure.patch
16+
17+ # lc3sim looks for the LC3 OS in $out/share/lc3tools instead of $out
18+ ./0002-lc3os-path.patch
19+
20+ # lc3sim-tk looks for lc3sim in $out/bin instead of $out
21+ ./0003-lc3sim-tk-path.patch
1622 ];
1723
1824 nativeBuildInputs = [ unzip ];
@@ -27,10 +33,9 @@ stdenv.mkDerivation {
2733 prefixKey = "--installdir ";
2834
2935 postInstall = ''
30− rm $out/{COPYING,NO_WARRANTY,README}
3136 mkdir -p $out/{bin,share/lc3tools}
3237
33− mv -t $out/share/lc3tools $out/lc3os*
38+ mv -t $out/share/lc3tools $out/{COPYING,NO_WARRANTY,README} $out/lc3os*
3439 mv -t $out/bin $out/lc3*
3540 '';
3641