nix-community / zon2nix

Convert the dependencies in `build.zig.zon` to a Nix expression [maintainer=@figsoda]
https://discourse.nixos.org/t/31468
Mozilla Public License 2.0
72 stars 10 forks source link

Not all `hash` are filled in #23

Open Artturin opened 2 months ago

Artturin commented 2 months ago
git clone https://git.sr.ht/~leon_plickat/wayprompt
cd wayprompt
zon2nix
# generated by zon2nix (https://github.com/nix-community/zon2nix)

{ linkFarm, fetchzip }:

linkFarm "zig-packages" [
  {
    name = "12201bbf05e1fb73323a9b13d2599dc4bf82851e6d328d7523a1af5b861a87edf286";
    path = fetchzip {
      url = "https://git.sr.ht/~leon_plickat/zig-ini/archive/879c74a3a801d49fa34343aebd55a22f591899b3.tar.gz";
      hash = "";
    };
  }
  {
    name = "12202727aaaf0e742d4945be55af1ace8b25902095e0c1b0a24b70cc80a81b7ac518";
    path = fetchzip {
      url = "https://git.sr.ht/~leon_plickat/zig-spoon/archive/fdba8e643c9558254bf4e6c600dfbd782fa7a267.tar.gz";
      hash = "";
    };
  }
  {
    name = "1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242";
    path = fetchzip {
      url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz";
      hash = "";
    };
  }
  {
    name = "12209db20ce873af176138b76632931def33a10539387cba745db72933c43d274d56";
    path = fetchzip {
      url = "https://codeberg.org/ifreund/zig-pixman/archive/v0.2.0.tar.gz";
      hash = "";
    };
  }
  {
    name = "1220a4029ee3ee70d3175c69878e2b70dccd000c4324bc74ba800d8a143b7250fb38";
    path = fetchzip {
      url = "https://git.sr.ht/~novakane/zig-fcft/archive/1.1.0.tar.gz";
      hash = "sha256-JAR6Ticav9l/3aemJWGsjXMEUyHjuhUr3L0fznnLoEY=";
    };
  }
  {
    name = "1220c90b2228d65fd8427a837d31b0add83e9fade1dcfa539bb56fd06f1f8461605f";
    path = fetchzip {
      url = "https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz";
      hash = "sha256-T+EZiStBfmxFUjaX05WhYkFJ8tRok/UQtpc9QY9NxZk=";
    };
  }
]
Artturin commented 2 months ago

zig-ini not filled in zig-xkbcommon filled in

$ nix flake prefetch --json 'https://git.sr.ht/~leon_plickat/zig-ini/archive/879c74a3a801d49fa34343aebd55a22f591899b3.tar.gz' | jq
{
  "hash": "sha256-in7abjMSWtnmrri2tbTJW2WVL4ZLrKkTT8Bxy8njJT4=",
  "storePath": "/nix/store/x3s11cn19nk6agy03lph1m5wk8mjvhss-source"
}
$ nix flake prefetch --json 'https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz' | jq
{
  "hash": "sha256-T+EZiStBfmxFUjaX05WhYkFJ8tRok/UQtpc9QY9NxZk=",
  "storePath": "/nix/store/d6dc6zywqwbrpzhdllm245rbprac4lay-source"
}