mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
38 lines
547 B
Nix
38 lines
547 B
Nix
|
{ lib
|
||
|
, rustPlatform
|
||
|
, meson
|
||
|
, ninja
|
||
|
, pkg-config
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage {
|
||
|
pname = "app";
|
||
|
version = "VERSION";
|
||
|
|
||
|
src = lib.fileset.toSource {
|
||
|
root = ./.;
|
||
|
fileset = lib.fs.unions [
|
||
|
./Cargo.lock
|
||
|
./Cargo.toml
|
||
|
./LICENSE
|
||
|
./meson.build
|
||
|
./meson_options.txt
|
||
|
./src
|
||
|
];
|
||
|
};
|
||
|
|
||
|
cargoLock.lockFile = ./Cargo.lock;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
meson
|
||
|
ninja
|
||
|
pkg-config
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Rust app";
|
||
|
mainProgram = "app";
|
||
|
platforms = platforms.unix;
|
||
|
};
|
||
|
}
|