NixOS-CN / flakes

48 stars 13 forks source link

Fix hydraJobs #11

Closed linyinfeng closed 3 years ago

linyinfeng commented 3 years ago

Free licenses don't have the attribute free.

$ nix flake show "github:nixos-cn/flakes"
github:nixos-cn/flakes/f6f9c72b790954b1101c44759f78e8109ac2c8ca
├───apps
│   ├───aarch64-linux
│   │   ├───re-export-hash: app
│   │   └───update-lock: app
...
│       ├───"vim-packages/vim-vala": derivation 'vimplugin-vim-vala'
│       └───wine-wechat: derivation 'wechat'
├───hydraJobs
error: attribute 'free' missing

       at /nix/store/j34myrasybjxmn0yz7v6ji7krkwc9ng5-source/flake.nix:146:61:

          145|         hydraJobs = filterAttrs
          146|           (_: v: !(hasAttrByPath [ "meta" "license" ] v) || v.meta.license.free)
             |                                                             ^
          147|           checks;
(use '--show-trace' to show detailed location information)