Files
nixpkgs/pkgs/by-name/as/asmc-linux/package.nix
KangaZero d80cceda10 asmc-linux: 2.36.25 -> 2.39.07
Also refactor to the finalAttrs pattern, switched out rev for tag, add                                        meta.changelog, and add versionCheckHook to guard against version drift.

Changelog: https://github.com/nidud/asmc/blob/v2.39/source/asmc/history.txt
2026-07-30 11:06:27 +09:00

40 lines
1005 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "asmc-linux";
version = "2.39.07";
src = fetchFromGitHub {
owner = "nidud";
repo = "asmc_linux";
tag = "v${finalAttrs.version}";
hash = "sha256-JtJsyaw4UqMf9epMLGH+iQA0FYYlE9k2NG1aPOu6pec=";
};
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -Dt $out/bin ./asmc
runHook postInstall
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "MASM-compatible assembler";
homepage = "https://github.com/nidud/asmc_linux";
changelog = "https://github.com/nidud/asmc/blob/v${lib.versions.majorMinor finalAttrs.version}/source/asmc/history.txt";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ccicnce113424 ];
platforms = with lib.systems.inspect; patternLogicalAnd patterns.isx86_64 patterns.isLinux;
mainProgram = "asmc";
};
})