git.delta.rocks / jrsonnet / refs/commits / b5082ff183e9

difftreelog

ci package everything for darwin cross

srpqrqmkYaroslav Bolyukin2026-05-08parent: #7bd5bbd.patch.diff
in: master

3 files changed

modifiedflake.lockdiffbeforeafterboth
110 },110 },
111 "nixpkgs": {111 "nixpkgs": {
112 "locked": {112 "locked": {
113 "lastModified": 1778022901,113 "lastModified": 1778255217,
114 "owner": "nixos",114 "owner": "nixos",
115 "repo": "nixpkgs",115 "repo": "nixpkgs",
116 "rev": "5d0f6be1c3cebacc3e817a18a44a3ac89ff66109",116 "rev": "aa279bba121eac3e966b6dcea9891b5e96330944",
117 "type": "github"117 "type": "github"
118 },118 },
119 "original": {119 "original": {
120 "owner": "nixos",120 "owner": "nixos",
121 "ref": "release-25.11",121 "ref": "master",
122 "repo": "nixpkgs",122 "repo": "nixpkgs",
123 "type": "github"123 "type": "github"
124 }124 }
modifiedflake.nixdiffbeforeafterboth
--- a/flake.nix
+++ b/flake.nix
@@ -1,7 +1,7 @@
 {
   description = "Jrsonnet";
   inputs = {
-    nixpkgs.url = "github:nixos/nixpkgs/release-25.11";
+    nixpkgs.url = "github:nixos/nixpkgs/master";
     fenix = {
       url = "github:CertainLach/fenix/fix/libatomic";
       inputs.nixpkgs.follows = "nixpkgs";
@@ -240,6 +240,8 @@
                 jrsonnet-darwin = pkgs.callPackage ./nix/jrsonnet-cross-darwin.nix {
                   craneLib = craneLibCross;
                   targetTriple = "${targetArch}-apple-darwin";
+                  # https://github.com/rust-cross/cargo-zigbuild/issues/433
+                  zig = pkgs.zig_0_15;
                 };
                 jrsonnet-experimental-darwin = jrsonnet-darwin.override {
                   withExperimentalFeatures = true;
modifiednix/jrsonnet-cross-darwin.nixdiffbeforeafterboth
--- a/nix/jrsonnet-cross-darwin.nix
+++ b/nix/jrsonnet-cross-darwin.nix
@@ -43,7 +43,11 @@
 
   doNotPostBuildInstallCargoBinaries = true;
   installPhaseCommand = ''
-    mkdir -p $out/bin
+    mkdir -p $out/bin $out/lib
     cp target/${targetTriple}/release/jrsonnet $out/bin/jrsonnet
+    cp target/${targetTriple}/release/jrsonnet-fmt $out/bin/jrsonnet-fmt
+    cp target/${targetTriple}/release/jrb $out/bin/jrb
+    cp target/${targetTriple}/release/libjsonnet.dylib $out/lib/libjsonnet.dylib
+    cp target/${targetTriple}/release/libjsonnet.a $out/lib/libjsonnet.a
   '';
 }