mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
jbang: enable __structuredAttrs and strictDeps
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user