Skip to content

Commit 7d739c4

Browse files
Post refactor fixup (#3395)
* fixup * fix feature deps for native
1 parent 6a3b098 commit 7d739c4

File tree

9 files changed

+13
-158
lines changed

9 files changed

+13
-158
lines changed

.nix/flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
pkgs.cargo
8484
pkgs.rust-analyzer
8585
pkgs.clippy
86+
pkgs.rustfmt
8687

8788
pkgs.git
8889

@@ -107,7 +108,7 @@
107108
args:
108109
(import ./pkgs/graphite.nix {
109110
pkgs = pkgs // {
110-
inherit graphene-raster-nodes-shaders;
111+
inherit raster-nodes-shaders;
111112
};
112113
inherit
113114
info
@@ -126,7 +127,7 @@
126127
dev = true;
127128
};
128129
#TODO: graphene-cli = import ./pkgs/graphene-cli.nix { inherit info pkgs inputs deps libs tools; };
129-
graphene-raster-nodes-shaders = import ./pkgs/graphene-raster-nodes-shaders.nix {
130+
raster-nodes-shaders = import ./pkgs/raster-nodes-shaders.nix {
130131
inherit
131132
info
132133
pkgs

.nix/pkgs/graphite.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ deps.crane.lib.buildPackage (
7878
env =
7979
common.env
8080
// {
81-
GRAPHENE_RASTER_NODES_SHADER_PATH = pkgs.graphene-raster-nodes-shaders;
81+
RASTER_NODES_SHADER_PATH = pkgs.raster-nodes-shaders;
8282
}
8383
// (
8484
if embeddedResources then

.nix/pkgs/graphene-raster-nodes-shaders.nix renamed to .nix/pkgs/raster-nodes-shaders.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}:
1010

1111
(deps.crane.lib.overrideToolchain (_: deps.rustGPU.toolchain)).buildPackage {
12-
pname = "graphene-raster-nodes-shaders";
12+
pname = "raster-nodes-shaders";
1313
inherit (info) version src;
1414

1515
cargoVendorDir = deps.crane.lib.vendorMultipleCargoDeps {
@@ -25,11 +25,11 @@
2525
env = deps.rustGPU.env;
2626

2727
buildPhase = ''
28-
cargo build -r -p graphene-raster-nodes-shaders
28+
cargo build -r -p raster-nodes-shaders
2929
'';
3030

3131
installPhase = ''
32-
cp target/spirv-builder/spirv-unknown-naga-wgsl/release/deps/graphene_raster_nodes_shaders_entrypoint.wgsl $out
32+
cp target/spirv-builder/spirv-unknown-naga-wgsl/release/deps/raster_nodes_shaders_entrypoint.wgsl $out
3333
'';
3434

3535
doCheck = false;

frontend/wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ license = "Apache-2.0"
1313
[features]
1414
default = ["gpu", "shader-nodes"]
1515
gpu = ["editor/gpu"]
16-
native = []
1716
shader-nodes = ["graphene-std/shader-nodes", "gpu"]
17+
native = []
1818

1919
[lib]
2020
crate-type = ["cdylib", "rlib"]

libraries/path-bool/flake.nix

Lines changed: 0 additions & 60 deletions
This file was deleted.

libraries/path-bool/shell.nix

Lines changed: 0 additions & 86 deletions
This file was deleted.

node-graph/nodes/gstd/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Graphite Authors <contact@graphite.rs>"]
77
license = "MIT OR Apache-2.0"
88

99
[features]
10-
default = ["wasm", "wgpu", "shader-nodes"]
10+
default = ["wasm", "wgpu"]
1111
gpu = []
1212
wgpu = ["gpu", "graph-craft/wgpu", "graphene-application-io/wgpu"]
1313
wasm = [

node-graph/nodes/raster/shaders/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
66
env_logger::builder().filter_level(log::LevelFilter::Debug).init();
77

88
// Skip building the shader if they are provided externally
9-
println!("cargo:rerun-if-env-changed=GRAPHENE_RASTER_NODES_SHADER_PATH");
10-
if !std::env::var("GRAPHENE_RASTER_NODES_SHADER_PATH").unwrap_or_default().is_empty() {
9+
println!("cargo:rerun-if-env-changed=RASTER_NODES_SHADER_PATH");
10+
if !std::env::var("RASTER_NODES_SHADER_PATH").unwrap_or_default().is_empty() {
1111
return Ok(());
1212
}
1313

@@ -49,6 +49,6 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
4949
// needs to be fixed upstream
5050
let path_to_wgsl = path_to_spv.with_extension("wgsl");
5151

52-
println!("cargo::rustc-env=GRAPHENE_RASTER_NODES_SHADER_PATH={}", path_to_wgsl.display());
52+
println!("cargo::rustc-env=RASTER_NODES_SHADER_PATH={}", path_to_wgsl.display());
5353
Ok(())
5454
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub const WGSL_SHADER: &str = include_str!(env!("GRAPHENE_RASTER_NODES_SHADER_PATH"));
1+
pub const WGSL_SHADER: &str = include_str!(env!("RASTER_NODES_SHADER_PATH"));

0 commit comments

Comments
 (0)