From b350a5de72ce8ea7d400232d626661f02ab77ef0 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 23 Nov 2024 11:05:11 +0800 Subject: [PATCH 1/2] starlark: format with nixfmt --- pkgs/by-name/st/starlark/package.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/starlark/package.nix b/pkgs/by-name/st/starlark/package.nix index 214c97edf5bf..df511ee0c419 100644 --- a/pkgs/by-name/st/starlark/package.nix +++ b/pkgs/by-name/st/starlark/package.nix @@ -1,4 +1,8 @@ -{ lib, fetchFromGitHub, buildGoModule }: +{ + lib, + fetchFromGitHub, + buildGoModule, +}: buildGoModule rec { pname = "starlark"; version = "0-unstable-2024-05-21"; @@ -12,7 +16,10 @@ buildGoModule rec { vendorHash = "sha256-8drlCBy+KROyqXzm/c+HBe/bMVOyvwRoLHxOApJhMfo="; - ldflags = [ "-s" "-w" ]; + ldflags = [ + "-s" + "-w" + ]; meta = with lib; { homepage = "https://github.com/google/starlark-go"; From c92e61cbc797a394577c1c5d7264c42654cc5474 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 23 Nov 2024 11:12:49 +0800 Subject: [PATCH 2/2] starlark: 0-unstable-2024-05-21 -> 0-unstable-2024-11-19 --- pkgs/by-name/st/starlark/package.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/st/starlark/package.nix b/pkgs/by-name/st/starlark/package.nix index df511ee0c419..302a0950232b 100644 --- a/pkgs/by-name/st/starlark/package.nix +++ b/pkgs/by-name/st/starlark/package.nix @@ -2,16 +2,17 @@ lib, fetchFromGitHub, buildGoModule, + nix-update-script, }: -buildGoModule rec { +buildGoModule { pname = "starlark"; - version = "0-unstable-2024-05-21"; + version = "0-unstable-2024-11-19"; src = fetchFromGitHub { owner = "google"; repo = "starlark-go"; - rev = "046347dcd1044f5e568fcf64884b0344f27910c0"; - hash = "sha256-qpJPCcMxrsspiN5FeQDZRaNchYPawMNJHtKK8fmrRug="; + rev = "d4d7611b175970714abca4efdc91692ee958a80f"; + hash = "sha256-1/nDuO7i9NVKUt5OSemQfE0TO78gvKBfHFoYC1u0VOQ="; }; vendorHash = "sha256-8drlCBy+KROyqXzm/c+HBe/bMVOyvwRoLHxOApJhMfo="; @@ -21,11 +22,15 @@ buildGoModule rec { "-w" ]; - meta = with lib; { + passthru.updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; + }; + + meta = { homepage = "https://github.com/google/starlark-go"; description = "Interpreter for Starlark, implemented in Go"; - license = licenses.bsd3; - maintainers = with maintainers; [ aaronjheng ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ aaronjheng ]; mainProgram = "starlark"; }; }