Skip to content

Commit

Permalink
dstep: init at 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imrying committed Mar 29, 2024
1 parent 3d92a65 commit f4b118a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/by-name/ds/dstep/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib, stdenv, fetchzip }:
let
version = "1.0.0";
sources = {
x86_64-linux = fetchzip {
url = "https://github.com/jacob-carlborg/dstep/releases/download/v${version}/dstep-${version}-linux-x86_64.tar.xz";
hash = "sha256-7smk97r0bszP+3AfAO1YMge11dqtIn8F6qy1X0Y7LrU=";
};
x86_64-darwin = fetchzip {
url = "https://github.com/jacob-carlborg/dstep/releases/download/v${version}/dstep-${version}-macos.tar.xz";
hash = "sha256-ZYFmIKYgbejU23z+0agagzNJqfS0Q3P9oe9OA75GUQk=";
};
};
in stdenv.mkDerivation {
pname = "dstep";
version = "1.0.0";

src = sources.${stdenv.hostPlatform.system} or (throw
"Unsupported system: ${stdenv.hostPlatform.system}");

installPhase = ''
runHook preInstall
install -Dm755 dstep $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 ];
platforms = builtins.attrNames sources;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}

0 comments on commit f4b118a

Please sign in to comment.