generated from GarandPLG/rust-flake-template
3813eaabb3
Introduce a `--debug` option and an `Init` subcommand to the CLI. Add a new `config` module with loader and schema types for reading and creating a default `veil.yaml` (supporting a local debug config path). Update `.gitignore`, `default.nix`, and `flake.nix` comments to reference the templates directory. Provide an example configuration template and integrate it into the application’s entry point.
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
# fetchFromGitea,
|
|
pkg-config,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}: let
|
|
pname = "veil-rs";
|
|
version = "0.1.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = ./.;
|
|
# src = fetchFromGitea {
|
|
# domain = "gitea.garandplg.com";
|
|
# owner = "GarandPLG";
|
|
# repo = "${pname}";
|
|
# tag = "v${version}";
|
|
# hash = lib.fakeHash;
|
|
# };
|
|
|
|
cargoHash = "sha256-AVFUk9Deq9bPp+UK0fZlRA81S5NxiEHV7HypGGsJ4/0=";
|
|
|
|
nativeBuildInputs = [pkg-config];
|
|
|
|
# buildInputs = [];
|
|
|
|
nativeInstallCheckInputs = [versionCheckHook];
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
# postInstall = ''
|
|
# cp -r templates $out/bin
|
|
# '';
|
|
|
|
meta = {
|
|
description = "Declarative Tauri wrapper";
|
|
homepage = "https://gitea.garandplg.com/GarandPLG/veil-rs";
|
|
license = lib.licenses.mit;
|
|
platforms = ["x86_64-linux"];
|
|
maintainers = with lib.maintainers; [
|
|
GarandPLG
|
|
];
|
|
mainProgram = pname;
|
|
};
|
|
}
|