{ lib, stdenv, sbcl, src, }: stdenv.mkDerivation { pname = "lisplings"; version = "0.1.0"; inherit src sbcl; installPhase = '' runHook preInstall mkdir -p $out/lib/lisplings $out/bin cp -r $src/src $src/exercises $src/solutions $src/info.sexp $out/lib/lisplings/ substituteAll ${./lisplings.sh} $out/bin/lisplings chmod +x $out/bin/lisplings runHook postInstall ''; meta = { description = "Small exercises to get you used to reading and writing Common Lisp code"; mainProgram = "lisplings"; }; }