Skip to content

Commit

Permalink
Merge pull request #299797 from imrying/dstep
Browse files Browse the repository at this point in the history
dlang dstep: init at 1.0.4
  • Loading branch information
symphorien committed Apr 8, 2024
2 parents e5c0436 + 4f6dbf2 commit 2aa023b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8527,6 +8527,12 @@
fingerprint = "F5B2 BE1B 9AAD 98FE 2916 5597 3665 FFF7 9D38 7BAA";
}];
};
imrying = {
email = "philiprying@gmail.com";
github = "imrying";
githubId = 36996706;
name = "Philip Rying";
};
imuli = {
email = "i@imu.li";
github = "imuli";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/by-name/ds/dstep/dub-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dependencies": {}
}
34 changes: 34 additions & 0 deletions pkgs/by-name/ds/dstep/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, buildDubPackage, fetchFromGitHub, clang, ldc, which }:
buildDubPackage rec {
pname = "dstep";
version = "1.0.4";

src = fetchFromGitHub {
owner = "jacob-carlborg";
repo = "dstep";
rev = "v${version}";
hash = "sha256-ZFz2+GtBk3StqXo/9x47xrDFdz5XujHR62hj0p3AjcY=";
};

dubLock = ./dub-lock.json;

nativeBuildInputs = [ ldc which clang ];

preConfigure = ''
./configure --llvm-path ${lib.getLib clang.cc}
'';

installPhase = ''
runHook preInstall
install -Dm755 bin/dstep -t $out/bin
runHook postInstall
'';

meta = with lib; {
description = "A tool for converting C and Objective-C headers to D modules";
homepage = "https://github.com/jacob-carlborg/dstep";
license = licenses.boost;
mainProgram = "dstep";
maintainers = with maintainers; [ imrying ];
};
}

0 comments on commit 2aa023b

Please sign in to comment.