Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instant-scala: init at 0.1.0 #337451

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9452,6 +9452,12 @@
githubId = 6789916;
name = "Jason Odoom";
};
jatcwang = {
email = "[email protected]";
github = "jatcwang";
githubId = 4957161;
name = "Jacob Wang";
};
Comment on lines +9455 to +9460
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is normally done as its own commit titledmaintainers: add jatcwang

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

javaes = {
email = "[email protected]";
github = "javaes";
Expand Down
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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

miss changelog here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed sorry

changelog = "https://github.com/jatcwang/instant-scala/releases/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jatcwang ];
mainProgram = "instant-scala";
};
})