This commit is contained in:
2026-06-03 14:16:45 +02:00
parent fe9c7e9682
commit f9bebfc938
12 changed files with 1493 additions and 195 deletions
+45 -10
View File
@@ -1,14 +1,49 @@
{
lib,
rustPlatform,
packageName,
# fetchFromGitea,
pkg-config,
# add nixpkgs if your dependencies requires system libraries
}:
rustPlatform.buildRustPackage {
name = "${packageName}";
src = ./.;
# buildInputs = [ ]; <-- add nixpkgs if your dependencies requires system libraries
nativeBuildInputs = [ pkg-config ];
cargoHash = lib.fakeHash; # <-- Put your real hash here after failed nix build
}
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-QV++fXA2+0Irzwtb6jCrphjIKKEtz8jOJURMnSP3YF4=";
nativeBuildInputs = [pkg-config];
# buildInputs = [];
nativeInstallCheckInputs = [versionCheckHook];
doInstallCheck = true;
passthru.updateScript = nix-update-script {};
postInstall = ''
mv $out/bin/veil_rs $out/bin/veil-rs
'';
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;
};
}