diff options
| author | ja <[email protected]> | 2025-12-30 12:58:28 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-30 11:58:28 -0600 |
| commit | 8fa1af851c4bb73bc53017fa57067b780ccb5626 (patch) | |
| tree | 0cd4e7ebc78daed3b3c68b927abd1cc52ab1cc89 /flake.nix | |
| parent | 73bc3e704ecbb3c49e52f10c4ca4f56547265c64 (diff) | |
| download | opencode-8fa1af851c4bb73bc53017fa57067b780ccb5626.tar.gz opencode-8fa1af851c4bb73bc53017fa57067b780ccb5626.zip | |
style(nix): use idiomatic inherit syntax (#6457)
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ "aarch64-darwin" "x86_64-darwin" ]; - lib = nixpkgs.lib; + inherit (nixpkgs) lib; forEachSystem = lib.genAttrs systems; pkgsFor = system: nixpkgs.legacyPackages.${system}; packageJson = builtins.fromJSON (builtins.readFile ./packages/opencode/package.json); @@ -70,12 +70,12 @@ in { default = mkPackage { - version = packageJson.version; + inherit (packageJson) version; src = ./.; scripts = ./nix/scripts; target = bunTarget.${system}; modelsDev = "${modelsDev.${system}}/dist/_api.json"; - mkNodeModules = mkNodeModules; + inherit mkNodeModules; }; } ); |
