I’ve been attempting to port my rust application into a nix flake and I’ve gotten it to successfully compile following this template. However, when I attempt to install files from the source directory it says that the file could not be found. The same command works in nixpkgs and the nur. What could be causing this?
{ inputs, ... }: {
imports = [
inputs.rust-flake.flakeModules.default
inputs.rust-flake.flakeModules.nixpkgs
inputs.process-compose-flake.flakeModule
inputs.cargo-doc-live.flakeModule
];
perSystem = { config, self', pkgs, lib, ... }: {
rust-project.crates."waytrogen".crane.args = {
nativeBuildInputs = with pkgs; [
pkg-config
glib
wrapGAppsHook4
sqlite
bash
];
buildInputs = with pkgs; [
glib
gtk4
ffmpeg
sqlite
openssl
gsettings-desktop-schemas
];
env = { OPENSSL_NO_VENDOR = 1; };
postBuild = ''
install -Dm644 org.Waytrogen.Waytrogen.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas
glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas
'';
};
packages.default = self'.packages.waytrogen;
};
}