Unverified Commit 6deabc35 authored by dish's avatar dish Committed by GitHub
Browse files

dscanner: init at 0.15.2 (#400353)

parents 517bb180 1d916135
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -11109,6 +11109,12 @@
    githubId = 16307070;
    name = "iosmanthus";
  };
  ipsavitsky = {
    email = "ipsavitsky234@gmail.com";
    github = "ipsavitsky";
    githubId = 33558632;
    name = "Ilya Savitsky";
  };
  iqubic = {
    email = "sophia.b.caspe@gmail.com";
    github = "iqubic";
+32 −0
Original line number Diff line number Diff line
{
  "dependencies": {
    "dcd": {
      "version": "0.16.0-beta.2",
      "sha256": "0756q02q1jbimrqn814b3j7q042vlxb7vva1rq823jx148r23d4d"
    },
    "dsymbol": {
      "version": "0.13.0",
      "sha256": "1lpwdri2bv5avs3hr0j1i00kjwdbs9nkc13wzlmjalfzjhqqqvci"
    },
    "emsi_containers": {
      "version": "0.9.0",
      "sha256": "1viz1fjh6jhfvl0d25bb1q7aclm1hrs0d7hhcx1d9c0gg5k6lcpm"
    },
    "inifiled": {
      "version": "1.3.3",
      "sha256": "01hw0lb9n6vwmx6vj5nq2awg54l5pvngqhzxfj2kmg99az84dg6d"
    },
    "libddoc": {
      "version": "0.8.0",
      "sha256": "0vxhkd92rxrkrz0svapdnkzh1bdqhws6wakhjj7szmkvykjgwksc"
    },
    "libdparse": {
      "version": "0.23.2",
      "sha256": "0bcaasam3iiqisilyx4ysxahjmgifn7i8ny155nwg64bjjibd8dk"
    },
    "stdx-allocator": {
      "version": "2.77.5",
      "sha256": "1g8382wr49sjyar0jay8j7y2if7h1i87dhapkgxphnizp24d7kaj"
    }
  }
}
+12 −0
Original line number Diff line number Diff line
diff --git a/dub.json b/dub.json
index 72cb269..1ea3903 100644
--- a/dub.json
+++ b/dub.json
@@ -21,7 +21,4 @@
   "stringImportPaths" : [
     "bin"
   ],
-  "preBuildCommands" : [
-    "\"$DC\" -run \"$PACKAGE_DIR/dubhash.d\""
-  ]
 }
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildDubPackage,
  fetchFromGitHub,
  versionCheckHook,
}:

buildDubPackage rec {
  pname = "dscanner";
  version = "0.15.2";

  src = fetchFromGitHub {
    owner = "dlang-community";
    repo = "D-Scanner";
    tag = "v${version}";
    hash = "sha256-7lZhYlK07VWpSRnzawJ2RL69/U/AH/qPyQY4VfbnVn4=";
  };

  preBuild = ''
    mkdir -p bin/
    echo "v${version}" > bin/dubhash.txt
  '';

  patches = [
    ./fix_version.patch
  ];

  dubLock = ./dub-lock.json;

  doCheck = true;

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

  nativeInstallCheckInputs = [
    versionCheckHook
  ];

  doInstallCheck = true;

  meta = {
    description = "Swiss-army knife for D source code";
    changelog = "https://github.com/dlang-community/D-Scanner/releases/tag/v${version}";
    homepage = "https://github.com/dlang-community/D-Scanner";
    mainProgram = "dscanner";
    maintainers = with lib.maintainers; [ ipsavitsky ];
    license = lib.licenses.boost;
  };
}