mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
trunk-io: modernize slightly (#561982)
This commit is contained in:
@@ -8,6 +8,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "trunk-io";
|
||||
version = "1.3.4";
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://trunk.io/releases/launcher/${finalAttrs.version}/trunk";
|
||||
hash = "sha256-ifvdjHtjZJ7rFHlBV1e4mJA8BB5ztJt4Ao29ZOyjCHo=";
|
||||
@@ -18,7 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D $src $out/bin/trunk
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
Reference in New Issue
Block a user