mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
Merge pull request #289114 from Rucadi/construct
construct: init at 0.1.0
This commit is contained in:
commit
183b71052e
2 changed files with 45 additions and 0 deletions
|
@ -16620,6 +16620,12 @@
|
|||
github = "rubyowo";
|
||||
githubId = 105302757;
|
||||
};
|
||||
rucadi = {
|
||||
email = "ruben.canodiaz@gmail.com";
|
||||
github = "rucadi";
|
||||
githubId = 6445619;
|
||||
name = "Ruben Cano Diaz";
|
||||
};
|
||||
rudolfvesely = {
|
||||
name = "Rudolf Vesely";
|
||||
email = "i@rudolfvesely.com";
|
||||
|
|
39
pkgs/by-name/co/construct/package.nix
Normal file
39
pkgs/by-name/co/construct/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "construct";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Thomas-de-Bock";
|
||||
repo = "construct";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-ENso0y7yEaXzGXzZOnlZ1L7+j/qayJL+f55/NYLz2ew=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile \
|
||||
--replace g++ c++
|
||||
'';
|
||||
|
||||
makeTarget = "main";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 bin/construct -t $out/bin
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Construct is an abstraction over x86 NASM Assembly";
|
||||
longDescription = "Construct adds features such as while loops, if statements, scoped macros and function-call syntax to NASM Assembly.";
|
||||
homepage = "https://github.com/Thomas-de-Bock/construct";
|
||||
maintainers = with maintainers; [ rucadi ];
|
||||
platforms = platforms.all;
|
||||
license = licenses.mit;
|
||||
mainProgram = "construct";
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue