diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2024-04-08 20:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 20:24:23 +0200 |
commit | 2aa023baf5260bf1a8e54ae57cde03e96b4c38e5 (patch) | |
tree | 19e898c8f84b4e8492727a535bf573e235a3d38b /pkgs/by-name | |
parent | e5c04366192c897bd6a9fddc00ccff63ad3966f3 (diff) | |
parent | 4f6dbf2696503bfaf6c2644f7e9a7cda6c887785 (diff) |
Merge pull request #299797 from imrying/dstep
dlang dstep: init at 1.0.4
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ds/dstep/dub-lock.json | 3 | ||||
-rw-r--r-- | pkgs/by-name/ds/dstep/package.nix | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/ds/dstep/dub-lock.json b/pkgs/by-name/ds/dstep/dub-lock.json new file mode 100644 index 0000000000000..18a1e415e5622 --- /dev/null +++ b/pkgs/by-name/ds/dstep/dub-lock.json @@ -0,0 +1,3 @@ +{ + "dependencies": {} +} diff --git a/pkgs/by-name/ds/dstep/package.nix b/pkgs/by-name/ds/dstep/package.nix new file mode 100644 index 0000000000000..ef1d8b8f11a2b --- /dev/null +++ b/pkgs/by-name/ds/dstep/package.nix @@ -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 ]; + }; +} |