Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

construct: init at 0.1.0 #289114

Merged
merged 1 commit into from Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -16564,6 +16564,12 @@
github = "rubyowo";
githubId = 105302757;
};
rucadi = {
Rucadi marked this conversation as resolved.
Show resolved Hide resolved
email = "ruben.canodiaz@gmail.com";
github = "rucadi";
githubId = 6445619;
name = "Ruben Cano Diaz";
};
rudolfvesely = {
name = "Rudolf Vesely";
email = "i@rudolfvesely.com";
Expand Down
39 changes: 39 additions & 0 deletions pkgs/by-name/co/construct/package.nix
@@ -0,0 +1,39 @@
{ stdenv
, lib
, fetchFromGitHub
}:

stdenv.mkDerivation (finalAttrs: {
Rucadi marked this conversation as resolved.
Show resolved Hide resolved
pname = "construct";
version = "0.1.0";

src = fetchFromGitHub {
owner = "Thomas-de-Bock";
repo = "construct";
rev = finalAttrs.version;
hash = "sha256-ENso0y7yEaXzGXzZOnlZ1L7+j/qayJL+f55/NYLz2ew=";
};

Rucadi marked this conversation as resolved.
Show resolved Hide resolved
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;
Rucadi marked this conversation as resolved.
Show resolved Hide resolved
license = licenses.mit;
mainProgram = "construct";
};
})