Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 788 B view raw
1with import <localpkgs> { }; 2let 3 inherit (vimUtils.override { inherit vim; }) buildVimPlugin; 4 inherit (neovimUtils) buildNeovimPlugin; 5 6 generated = callPackage <localpkgs/pkgs/applications/editors/vim/plugins/generated.nix> { 7 inherit buildNeovimPlugin buildVimPlugin; 8 } { } { }; 9 10 hasChecksum = 11 value: 12 lib.isAttrs value 13 && lib.hasAttrByPath [ 14 "src" 15 "outputHash" 16 ] value; 17 18 parse = name: value: { 19 pname = value.pname; 20 version = value.version; 21 homePage = value.meta.homepage; 22 checksum = 23 if hasChecksum value then 24 { 25 submodules = value.src.fetchSubmodules or false; 26 sha256 = value.src.outputHash; 27 rev = value.src.rev; 28 } 29 else 30 null; 31 }; 32in 33lib.mapAttrs parse generated