-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cargo run tool #3832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Cargo run tool #3832
Changes from all commits
f4040db
8fe8103
33d384c
deb2c6d
c02e1be
1c3e36d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| inputs: | ||
|
|
||
| let | ||
| systems = [ | ||
| "x86_64-linux" | ||
| "aarch64-linux" | ||
| ]; | ||
| forAllSystems = f: inputs.nixpkgs.lib.genAttrs systems (system: f system); | ||
| args = | ||
| system: | ||
| ( | ||
| let | ||
| lib = inputs.nixpkgs.lib // { | ||
| call = p: import p args; | ||
| }; | ||
|
|
||
| pkgs = import inputs.nixpkgs { | ||
| inherit system; | ||
| overlays = [ (import inputs.rust-overlay) ]; | ||
| }; | ||
|
|
||
| info = { | ||
| pname = "graphite"; | ||
| version = "unstable"; | ||
| src = inputs.nixpkgs.lib.cleanSourceWith { | ||
| src = ./..; | ||
| filter = path: type: !(type == "directory" && builtins.baseNameOf path == ".nix"); | ||
| }; | ||
| cargoVendored = deps.crane.lib.vendorCargoDeps { inherit (info) src; }; | ||
| }; | ||
|
|
||
| deps = { | ||
| crane = lib.call ./deps/crane.nix; | ||
| cef = lib.call ./deps/cef.nix; | ||
| rustGPU = lib.call ./deps/rust-gpu.nix; | ||
| }; | ||
|
|
||
| args = { | ||
| inherit system; | ||
| inherit (inputs) self; | ||
| inherit inputs; | ||
| inherit pkgs; | ||
| inherit lib; | ||
| inherit info; | ||
| inherit deps; | ||
| } | ||
| // inputs; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The args = inputs // {
inherit system;
...
};Prompt for AI agents |
||
| in | ||
| args | ||
| ); | ||
| withArgs = f: forAllSystems (system: f (args system)); | ||
| in | ||
| { | ||
| packages = withArgs ( | ||
| { lib, ... }: | ||
| rec { | ||
| default = graphite; | ||
| graphite = (lib.call ./pkgs/graphite.nix) { }; | ||
| graphite-dev = (lib.call ./pkgs/graphite.nix) { dev = true; }; | ||
| graphite-raster-nodes-shaders = lib.call ./pkgs/graphite-raster-nodes-shaders.nix; | ||
| graphite-branding = lib.call ./pkgs/graphite-branding.nix; | ||
| graphite-bundle = lib.call ./pkgs/graphite-bundle.nix; | ||
| graphite-flatpak-manifest = lib.call ./pkgs/graphite-flatpak-manifest.nix; | ||
|
|
||
| # TODO: graphene-cli = lib.call ./pkgs/graphene-cli.nix; | ||
|
|
||
| tools = { | ||
| third-party-licenses = lib.call ./pkgs/tools/third-party-licenses.nix; | ||
| }; | ||
| } | ||
| ); | ||
|
|
||
| devShells = withArgs ( | ||
| { lib, ... }: | ||
| { | ||
| default = lib.call ./dev.nix; | ||
| } | ||
| ); | ||
|
|
||
| formatter = withArgs ({ pkgs, ... }: pkgs.nixfmt-tree); | ||
| } | ||
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P0: The
!build-debugcommand will never work. The job-levelifcondition (line 24) still gates on!build-dev, so a!build-debugcomment won't even start the job. The job-level condition, the usage comment (line 3), and the error message (line 92) all need to be updated from!build-devto!build-debugto match this rename.Prompt for AI agents