-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
description = "A Scala project with SBT"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
sbt = pkgs.sbt; | ||
jdk = pkgs.jdk21; | ||
scala = pkgs.scala; | ||
in { | ||
devShell = pkgs.mkShell { | ||
buildInputs = [ sbt jdk scala ]; | ||
shellHook = '' | ||
echo "SBT and Scala environment ready!" | ||
''; | ||
}; | ||
|
||
packages.default = pkgs.stdenv.mkDerivation { | ||
name = "flake-vsys-build-with-sbt"; | ||
src = ./.; | ||
buildInputs = [ sbt jdk scala ]; | ||
buildPhase = '' | ||
echo "Building with SBT..." | ||
sed -i 's/scalaVersion in ThisBuild := "2.12.6"/scalaVersion in ThisBuild := "2.12.18"/' build.sbt | ||
sed -i 's/sbt.version=1.1.1/sbt.version=1.9.9/' project/build.properties | ||
export HOME=~ | ||
sbt packageAll | ||
''; | ||
installPhase = '' | ||
mkdir -p $out | ||
cp -r target $out | ||
''; | ||
}; | ||
} | ||
); | ||
} |
058a7d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
垃圾,畜生,诈骗狗,开发你麻痹 死链!
没有用户,没有交易,没应用,没社区,狗杂种!
vsystems is the most shameless and rubbish scam dog in the entire network.
930,000 new vsys scam coins are issued, and only 30 vsys are destroyed every day.
vsys has no applications, no users, and dead chain with no on-chain transactions!