mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
837 B
Nix
35 lines
837 B
Nix
{ 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 = "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 ];
|
|
};
|
|
}
|