Skip to content

Commit

Permalink
instant-scala: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jatcwang committed Sep 18, 2024
1 parent 9710ff0 commit 5b0e0ce
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/in/instant-scala/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
lib,
stdenv,
fetchFromGitHub,
scala-cli,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "instant-scala";
version = "0.1.0";

src = fetchFromGitHub {
owner = "jatcwang";
repo = "instant-scala";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "jqSvKTL8NzqjwqDj/+55YWecx2bnzuArP8RdfH5q/1U=";
};

buildInputs = [
scala-cli
];

installPhase = ''
install -Dm755 instant-scala $out/bin/instant-scala
'';

meta = {
description = "Write Scala scripts that starts instantly using scala-cli and GraalVM";
homepage = "https://github.com/jatcwang/instant-scala";
changelog = "https://github.com/jatcwang/instant-scala/releases/${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jatcwang ];
mainProgram = "instant-scala";
};
})

0 comments on commit 5b0e0ce

Please sign in to comment.