|
|
@ -17,9 +17,13 @@ Updating `cargoHash`:
|
|
|
|
inputs = {
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
|
|
|
|
|
|
crane = {
|
|
|
|
|
|
|
|
url = "github:ipetkov/crane";
|
|
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, rust-overlay }:
|
|
|
|
outputs = { self, nixpkgs, rust-overlay, crane }:
|
|
|
|
let
|
|
|
|
let
|
|
|
|
overlays = [ (import rust-overlay) ];
|
|
|
|
overlays = [ (import rust-overlay) ];
|
|
|
|
system = "x86_64-linux";
|
|
|
|
system = "x86_64-linux";
|
|
|
@ -70,16 +74,29 @@ Updating `cargoHash`:
|
|
|
|
description = "A tool for generating dye sublimation transfer sheet SVGs for Japanese thumb shift 拇指シフト keycaps.";
|
|
|
|
description = "A tool for generating dye sublimation transfer sheet SVGs for Japanese thumb shift 拇指シフト keycaps.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
dyesub-tool = rustPlatformWasm.buildRustPackage (rustSettings // {
|
|
|
|
dyesub-tool = let
|
|
|
|
pname = "dyesub-tool";
|
|
|
|
rustToolchain = pkgs.rust-bin.nightly.latest.minimal.override {
|
|
|
|
version = "0.1.0";
|
|
|
|
targets = [ "wasm32-unknown-unknown" ];
|
|
|
|
buildAndTestSubdir = "dyesub-tool";
|
|
|
|
};
|
|
|
|
buildInputs = with pkgs; [ trunk ];
|
|
|
|
craneLib = ((crane.mkLib pkgs).overrideToolchain rustToolchain).overrideScope' (final: prev: {
|
|
|
|
cargoHash = "sha256-KSBTEBHuWaenIVaKUMDRFToYxcTA/TFwsIG10WNP47g=";
|
|
|
|
wasm-bindgen-cli = pkgs.wasm-bindgen-cli;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
crateNameFromCargoToml = packageName: craneLib.crateNameFromCargoToml { cargoToml = ./${packageName}/Cargo.toml; };
|
|
|
|
|
|
|
|
in craneLib.buildTrunkPackage {
|
|
|
|
|
|
|
|
inherit (crateNameFromCargoToml "dyesub-tool") pname version;
|
|
|
|
|
|
|
|
src = with pkgs.lib; cleanSourceWith {
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
filter = path: type:
|
|
|
|
|
|
|
|
(hasSuffix "\.html" path) ||
|
|
|
|
|
|
|
|
(hasSuffix "\.css" path) ||
|
|
|
|
|
|
|
|
(craneLib.filterCargoSources path type)
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
trunkIndexPath = "dyesub-tool/index.html";
|
|
|
|
meta = meta // {
|
|
|
|
meta = meta // {
|
|
|
|
description = "A tool for generating dye sublimation transfer sheet SVGs for Japanese thumb shift 拇指シフト keycaps.";
|
|
|
|
description = "A tool for generating dye sublimation transfer sheet SVGs for Japanese thumb shift 拇指シフト keycaps.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|