jappeace / cut-the-crap

Automated video editing for streamers
MIT License
102 stars 7 forks source link

nix-build: cannot coerce null to a string #56

Open anijatsu opened 1 year ago

anijatsu commented 1 year ago

I'm getting an error when trying to build the program on macOS 12.6 as per the instructions https://github.com/jappeace/cut-the-crap#from-source

~/Syncthing/git/cut-the-crap% nix-build . --show-trace                                               
error: cannot coerce null to a string

       at /nix/store/d4pz7qqdiq3747rkcvk72z4rmqpaj97c-nixos-pin-10.10.2020/pkgs/stdenv/generic/make-derivation.nix:192:34:

          191|         // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) {
          192|           name = "${attrs.pname}-${attrs.version}";
             |                                  ^
          193|         } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) {

       … while evaluating the derivation attribute 'name'
(...)

Full log is here: nix_build_2022-10-24 10-03.txt Please tell me what troubleshooting info can I provide.

jappeace commented 1 year ago

for whatever reason version isn't set. can you run cabal2nix by hand?