jbang: enable __structuredAttrs and strictDeps

This commit is contained in:
FliegendeWurst
2026-06-20 16:06:37 +02:00
parent 08005d53ef
commit 0645730af2

View File

@@ -4,6 +4,7 @@
fetchzip,
jdk,
makeWrapper,
bashNonInteractive,
coreutils,
curl,
}:
@@ -12,6 +13,9 @@ stdenv.mkDerivation rec {
version = "0.136.0";
pname = "jbang";
__structuredAttrs = true;
strictDeps = true;
src = fetchzip {
url = "https://github.com/jbangdev/jbang/releases/download/v${version}/${pname}-${version}.tar";
sha256 = "sha256-MsP4iLquOwJWlV7EPxSuAPWuyTv1PPSyQCrVdq4lPlM=";
@@ -19,6 +23,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
bashNonInteractive
];
installPhase = ''
runHook preInstall
rm bin/jbang.{cmd,ps1}