init: simple cask, initial template
This commit is contained in:
22
16-countries-page-from-api/default.nix
Normal file
22
16-countries-page-from-api/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs, lib, sbt-derivation }:
|
||||
let
|
||||
pname = "countries-page";
|
||||
in {
|
||||
package = sbt-derivation.lib.mkSbtDerivation {
|
||||
inherit pkgs pname;
|
||||
# ...and the rest of the arguments
|
||||
version = "0.0.1";
|
||||
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
|
||||
nativeBuildInputs = [ pkgs.nodePackages.tailwindcss ];
|
||||
buildPhase = ''
|
||||
tailwindcss -i ./src/input.css -o ./src/main/resources/public/output.css
|
||||
sbt assembly
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp target/scala-*/${pname}-assembly-*.jar $out/bin/${pname}.jar
|
||||
'';
|
||||
|
||||
depsSha256 = "";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user