difftreelog
ci fix nix flake check
in: trunk
1 file changed
flake.nixdiffbeforeafterboth98 };98 };99 in99 in100 packages // {default = packages.fleet;});100 packages // {default = packages.fleet;});101 # fleet-install-secrets will not be built normally, because they are not ran directly by user most of the time.102 # checks there build packages for default nixpkgs rustPlatform packages.103 checks = let104 packages = pkgs.callPackages ./pkgs {105 inherit craneLib;106 };107 prefixAttrs = prefix: attrs:108 mapAttrs' (name: value: {109 name = "${prefix}${name}";110 value = value.overrideAttrs (prev: {111 pname = "${prefix}${prev.pname}";112 });113 })114 attrs;115 in116 # `fleet` crate wants nightly rust, also little sense of supporting it on stable nixpkgs.117 (prefixAttrs "nixpkgs-" (removeAttrs packages ["fleet"]));101 # TODO: It should be possible to move lib.mkIf to default attribute, instead of disabling the whole118 # TODO: It should be possible to move lib.mkIf to default attribute, instead of disabling the whole102 # devShells block, yet nix flake check fails here, due to no default shell found. It is nix or flake-parts bug?119 # devShells block, yet nix flake check fails here, due to no default shell found. It is nix or flake-parts bug?103 devShells = lib.mkIf deployerSystem {120 devShells = lib.mkIf deployerSystem {119 env.PROTOC = "${pkgs.protobuf}/bin/protoc";136 env.PROTOC = "${pkgs.protobuf}/bin/protoc";120 };137 };121 };138 };122 # fleet-install-secrets will not be built normally, because they are not ran directly by user most of the time.123 # checks there build packages for default nixpkgs rustPlatform packages.124 checks = let125 packages = pkgs.callPackages ./pkgs {};126 prefixAttrs = prefix: attrs:127 mapAttrs' (name: value: {128 name = "${prefix}${name}";129 value = value.overrideAttrs (prev: {130 pname = "${prefix}${prev.pname}";131 });132 })133 attrs;134 in135 # `fleet` crate wants nightly rust, also little sense of supporting it on stable nixpkgs.136 (prefixAttrs "nixpkgs-" (removeAttrs packages ["fleet"]));137 formatter = pkgs.alejandra;139 formatter = pkgs.alejandra;138 };140 };139 };141 };