blob: 05877430e0d34034654c9c2c616aa6b2b5732b85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
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";
};
})
|