Files
veil-rs/default.nix
T
GarandPLG 6e46e26f7a Rename crate to veil-rs and update Nix scripts
Change package name from veil_rs to veil-rs.
Update Cargo.toml and Cargo.lock accordingly.
Update cargoHash in default.nix for the renamed package.
Comment out postInstall step that renamed the binary.
Rename `args` variable to `_args` in main.rs to silence unused warning.
2026-06-04 12:33:12 +02:00

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 static files
# '';
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;
};
}