babashka 0 -> 1
attrpath: babashka
Checking auto update branch...
[version]
[version] skipping because derivation has updateScript
[rustCrateVersion]
[rustCrateVersion] No cargoSha256 or cargoHash found
[golangModuleVersion]
[golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash
[updateScript]
[updateScript] Success
[updateScript] these 2 derivations will be built:
/nix/store/zphwshil2d5vrnyvbmx75kb4sih2wh93-update-babashka.drv
/nix/store/2pgwzhhyjznj01d20qi0n7ix602ckhb3-packages.json.drv
building '/nix/store/zphwshil2d5vrnyvbmx75kb4sih2wh93-update-babashka.drv'...
building '/nix/store/2pgwzhhyjznj01d20qi0n7ix602ckhb3-packages.json.drv'...
Going to be running update for following packages:
- babashka-1.0.169
Press Enter key to continue...
Running update for:
- babashka-1.0.169: UPDATING ...
- babashka-1.0.169: DONE.
Packages updated!
[quotedUrls]
[quotedUrls] nothing found to replace
Diff after rewrites:
diff --git a/pkgs/development/interpreters/clojure/babashka.nix b/pkgs/development/interpreters/clojure/babashka.nix
index 0934e73a19a..4f0259c65d8 100644
--- a/pkgs/development/interpreters/clojure/babashka.nix
+++ b/pkgs/development/interpreters/clojure/babashka.nix
@@ -2,11 +2,11 @@
buildGraalvmNativeImage rec {
pname = "babashka";
- version = "1.0.169";
+ version = "1.0.170";
src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
- sha256 = "sha256-R4oGMN/2oVPKe0JBXXQ1mzw0F66Wn+WiP0kVs53zdoI=";
+ sha256 = "sha256-NM1lcDi60DuBr67kOx6CVLyO8p2DUq6c2oTZEiHBFjw=";
};
executable = "bb";
No auto update branch exists
Successfully finished processing
cachix "/nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170"
[check][nixpkgs-review]
Result of `nixpkgs-review` run on x86_64-linux [1](https://github.com/Mic92/nixpkgs-review)
3 packages built:
Automatic update generated by [nixpkgs-update](https://github.com/ryantm/nixpkgs-update) tools. This update was made based on information from passthru.updateScript.
meta.description for babashka is: A Clojure babushka for the grey areas of Bash
meta.homepage for babashka is: https://github.com/babashka/babashka
meta.changelog for babashka is: https://github.com/babashka/babashka/blob/v1.0.170/CHANGELOG.md
###### Updates performed
- Ran passthru.UpdateScript
###### To inspect upstream changes
- [Release on GitHub](https://github.com/babashka/babashka/releases/tag/v1.0.170)
- [Compare changes on GitHub](https://github.com/babashka/babashka/compare/v1.0.169...v1.0.170)
###### Impact
Checks done (click to expand)
---
- built on NixOS
- The tests defined in `passthru.tests`, if any, passed
- found 1.0.170 with grep in /nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170
- found 1.0.170 in filename of file in /nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170
---
Rebuild report (if merged into master) (click to expand)
```
3 total rebuild path(s)
3 package rebuild(s)
First fifty rebuilds by attrpath
babashka
bbin
neil
```
Instructions to test this update (click to expand)
---
Either **download from Cachix**:
```
nix-store -r /nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170 \
--option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
--option trusted-public-keys '
nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
'
```
(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the `trusted-users` list or you can use `sudo` since root is effectively trusted.
Or, **build yourself**:
```
nix-build -A babashka https://github.com/r-ryantm/nixpkgs/archive/53bb93d08bc75a0a7b32be9ffed32202f7469e08.tar.gz
```
After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
ls -la /nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170
ls -la /nix/store/89pvzy7bjq2qy0g96q3n6nn7k6k6f7zs-babashka-1.0.170/bin
```
---
### Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as _failed to build_ independent of the
change, simply because they are already broken on the target branch.
Result of `nixpkgs-review` run on x86_64-linux [1](https://github.com/Mic92/nixpkgs-review)
3 packages built:
---
###### Maintainer pings
cc @bennyandresen @bhougland18 @DerGuteMoritz @jlesquembre @thiagokokada for [testing](https://github.com/ryantm/nixpkgs-update/blob/master/doc/nixpkgs-maintainer-faq.md#r-ryantm-opened-a-pr-for-my-package-what-do-i-do).
https://api.github.com/repos/NixOS/nixpkgs/pulls/212216
babashka 1.0.169 -> 1.0.170 https://github.com/babashka/babashka/releases
attrpath: babashka
Checking auto update branch...
[version]
[version] skipping because derivation has updateScript
[rustCrateVersion]
[rustCrateVersion] No cargoSha256 or cargoHash found
[golangModuleVersion]
[golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash
[updateScript]
[updateScript] Success
[updateScript]
Going to be running update for following packages:
- babashka-1.0.169
Press Enter key to continue...
Running update for:
- babashka-1.0.169: UPDATING ...
- babashka-1.0.169: DONE.
Packages updated!
[quotedUrls]
[quotedUrls] nothing found to replace
Diff after rewrites:
diff --git a/pkgs/development/interpreters/clojure/babashka.nix b/pkgs/development/interpreters/clojure/babashka.nix
index 0934e73a19a..4f0259c65d8 100644
--- a/pkgs/development/interpreters/clojure/babashka.nix
+++ b/pkgs/development/interpreters/clojure/babashka.nix
@@ -2,11 +2,11 @@
buildGraalvmNativeImage rec {
pname = "babashka";
- version = "1.0.169";
+ version = "1.0.170";
src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
- sha256 = "sha256-R4oGMN/2oVPKe0JBXXQ1mzw0F66Wn+WiP0kVs53zdoI=";
+ sha256 = "sha256-NM1lcDi60DuBr67kOx6CVLyO8p2DUq6c2oTZEiHBFjw=";
};
executable = "bb";
No auto update branch exists
Old version 1.0.169" not present in master derivation file with contents: { lib, buildGraalvmNativeImage, fetchurl, writeScript }:
buildGraalvmNativeImage rec {
pname = "babashka";
version = "1.0.170";
src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
sha256 = "sha256-NM1lcDi60DuBr67kOx6CVLyO8p2DUq6c2oTZEiHBFjw=";
};
executable = "bb";
extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
"--no-fallback"
"--native-image-info"
];
installCheckPhase = ''
$out/bin/bb --version | grep '${version}'
$out/bin/bb '(+ 1 2)' | grep '3'
$out/bin/bb '(vec (dedupe *input*))' <<< '[1 1 1 1 2]' | grep '[1 2]'
'';
passthru.updateScript = writeScript "update-babashka" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl common-updater-scripts jq
set -euo pipefail
readonly latest_version="$(curl \
''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
-s "https://api.github.com/repos/babashka/babashka/releases/latest" \
| jq -r '.tag_name')"
# v0.6.2 -> 0.6.2
update-source-version babashka "''${latest_version/v/}"
'';
meta = with lib; {
description = "A Clojure babushka for the grey areas of Bash";
longDescription = ''
The main idea behind babashka is to leverage Clojure in places where you
would be using bash otherwise.
As one user described it:
I’m quite at home in Bash most of the time, but there’s a substantial
grey area of things that are too complicated to be simple in bash, but
too simple to be worth writing a clj/s script for. Babashka really
seems to hit the sweet spot for those cases.
Goals:
- Low latency Clojure scripting alternative to JVM Clojure.
- Easy installation: grab the self-contained binary and run. No JVM needed.
- Familiarity and portability:
- Scripts should be compatible with JVM Clojure as much as possible
- Scripts should be platform-independent as much as possible. Babashka
offers support for linux, macOS and Windows.
- Allow interop with commonly used classes like java.io.File and System
- Multi-threading support (pmap, future, core.async)
- Batteries included (tools.cli, cheshire, ...)
- Library support via popular tools like the clojure CLI
'';
homepage = "https://github.com/babashka/babashka";
changelog = "https://github.com/babashka/babashka/blob/v${version}/CHANGELOG.md";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.epl10;
maintainers = with maintainers; [
bandresen
bhougland
DerGuteMoritz
jlesquembre
thiagokokada
];
};
}