Files
nixpkgs/pkgs/by-name/xw/xwin/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
openssl,
pkg-config,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "xwin";
version = "0.6.7";
src = fetchFromGitHub {
owner = "Jake-Shadle";
repo = "xwin";
tag = finalAttrs.version;
hash = "sha256-od8QnUC0hU9GYE/gRB74BlQezlt9IZq2A4F331wHm7Q=";
};
cargoHash = "sha256-77ArdZ9mOYEon4nzNUNSL0x0UlE1iVujFLwreAd9iMM=";
strictDeps = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
buildNoDefaultFeatures = true;
buildFeatures = [
"native-tls"
];
doCheck = true;
# Requires network access
checkFlags = [
"--skip verify_compiles"
"--skip verify_deterministic"
];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = placeholder "out" + "/bin/xwin";
meta = {
description = "Utility for downloading the Microsoft CRT & Windows SDK libraries";
homepage = "https://github.com/Jake-Shadle/xwin";
changelog = "https://github.com/Jake-Shadle/xwin/releases/tag/" + finalAttrs.version;
mainProgram = "xwin";
license = [
lib.licenses.mit
lib.licenses.asl20
];
maintainers = with lib.maintainers; [ RossSmyth ];
platforms = with lib.platforms; linux ++ darwin ++ windows;
};
})