What is Nostr?
freeborn | ελεύθερος
npub1ak5…0gwg
2025-01-23 19:55:52
in reply to nevent1q…t3gf

freeborn | ελεύθερος on Nostr: I was getting the error ```CMake Error: The source directory "/build/source" does not ...

I was getting the error ```CMake Error: The source directory "/build/source" does not appear to contain CMakeLists.txt.``` I didn't tell anything to look in the ```/build/source``` directory so I don't know how to change that. Tried changing ```build.target-dir``` in ```.cargo/config.toml`` but that didn't work, either. IDK. 🤷‍♂️

Doesn't build running ```./build.sh``` or by running ```nix-build```.

For any kind soul who wants to help a #NixOS newbie out, this is what I have so far in ```default.nix```

```
{ pkgs ? import <nixpkgs> { } }:

pkgs.stdenv.mkDerivation rec {
name = "gossip-0.13.0";
#name = "gossip";
#version = "0.13.0";
src = pkgs.fetchFromGitHub {
owner = "mikedilger";
repo = "gossip";
rev = "v0.13.0";
sha256 = "sha256-GhkILnt573deQU42uN4YnhzDxirEvCpsvBnp6hF06v4=";
fetchSubmodules = true;
};
buildInputs = [
pkgs.SDL2
pkgs.cargo
pkgs.cmake
pkgs.ffmpeg
pkgs.fontconfig
pkgs.gcc
pkgs.openssl
pkgs.pkg-config
pkgs.rustc
];
buildPhase = ''
RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" cargo build --features=video-ffmpeg --release
strip ./target/release/gossip
'';
installPhase = ''
mkdir -p $out/bin
cp ./target/release/gossip $out/bin
'';
}
```

#HailMary (so to speak)
Author Public Key
npub1ak5kewf6anwkrt0qc8ua907ljkn7wm83e2ycyrpcumjvaf2upszs8r0gwg