I am trying to build a derivation of my crystal project and everything works flawlessly including the tests, but when i look into the resulting derivation only license and readme file have made it.
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31.tar.gz") { }
}:
pkgs.crystal.buildCrystalPackage rec {
pname = "dmnd-bot";
version = "0.2.0";
src = builtins.path { path = ./.; name = pname; };
format = "crystal";
shardsFile = ./shards.nix;
buildInputs = [
pkgs.openssl
];
postPatch = ''
substituteInPlace spec/syncplay_bot_spec.cr \
--replace 'syncplay' '${pkgs.syncplay}/bin/syncplay'
'';
checkInputs = [
pkgs.syncplay
];
}
the output of this derivation looks like this:
$ ls /nix/store/7q8gk4gqk4lnkq16blmjg7m0jnbbxjxg-dmnd-bot-0.2.0
share
Am I missing something?