generated from GarandPLG/rust-flake-template
6e46e26f7a
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.
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 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;
|
|
};
|
|
}
|