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
1{1{
2 description = "Jrsonnet";2 description = "Jrsonnet";
3 inputs = {3 inputs = {
4 nixpkgs.url = "github:nixos/nixpkgs/release-25.11";4 nixpkgs.url = "github:nixos/nixpkgs/master";
5 fenix = {5 fenix = {
6 url = "github:CertainLach/fenix/fix/libatomic";6 url = "github:CertainLach/fenix/fix/libatomic";
7 inputs.nixpkgs.follows = "nixpkgs";7 inputs.nixpkgs.follows = "nixpkgs";
240 jrsonnet-darwin = pkgs.callPackage ./nix/jrsonnet-cross-darwin.nix {240 jrsonnet-darwin = pkgs.callPackage ./nix/jrsonnet-cross-darwin.nix {
241 craneLib = craneLibCross;241 craneLib = craneLibCross;
242 targetTriple = "${targetArch}-apple-darwin";242 targetTriple = "${targetArch}-apple-darwin";
243 # https://github.com/rust-cross/cargo-zigbuild/issues/433
244 zig = pkgs.zig_0_15;
243 };245 };
244 jrsonnet-experimental-darwin = jrsonnet-darwin.override {246 jrsonnet-experimental-darwin = jrsonnet-darwin.override {
245 withExperimentalFeatures = true;247 withExperimentalFeatures = true;
modifiednix/jrsonnet-cross-darwin.nixdiffbeforeafterboth
42 '';42 '';
4343
44 doNotPostBuildInstallCargoBinaries = true;44 doNotPostBuildInstallCargoBinaries = true;
45 installPhaseCommand = ''45 installPhaseCommand = ''
46 mkdir -p $out/bin46 mkdir -p $out/bin $out/lib
47 cp target/${targetTriple}/release/jrsonnet $out/bin/jrsonnet47 cp target/${targetTriple}/release/jrsonnet $out/bin/jrsonnet
48 cp target/${targetTriple}/release/jrsonnet-fmt $out/bin/jrsonnet-fmt
49 cp target/${targetTriple}/release/jrb $out/bin/jrb
50 cp target/${targetTriple}/release/libjsonnet.dylib $out/lib/libjsonnet.dylib
51 cp target/${targetTriple}/release/libjsonnet.a $out/lib/libjsonnet.a
48 '';52 '';
49}53}
5054