{ lib, rustPlatform, # fetchFromGitea, pkg-config, versionCheckHook, nix-update-script, }: let pname = "rust-flake-template"; 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 = lib.fakeHash; nativeBuildInputs = [pkg-config]; # buildInputs = []; nativeInstallCheckInputs = [versionCheckHook]; doInstallCheck = true; passthru.updateScript = nix-update-script {}; # postInstall = '' # cp -r statics $out/bin # ''; meta = { description = "Basic rust flake for development and production"; homepage = "https://gitea.garandplg.com/GarandPLG/${pname}"; license = lib.licenses.mit; platforms = ["x86_64-linux"]; maintainers = with lib.maintainers; [ GarandPLG ]; mainProgram = pname; }; }