Compare commits
1 Commits
main
...
bc115a7ccc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc115a7ccc
|
@@ -2,8 +2,6 @@ apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: build
|
||||
labels:
|
||||
pdb: protect
|
||||
spec:
|
||||
timeouts:
|
||||
pipeline: "2h0m0s"
|
||||
@@ -64,7 +62,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
||||
- name: pathInRepo
|
||||
value: task/git-clone/0.1/git-clone.yaml
|
||||
resolver: git
|
||||
@@ -103,7 +101,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
params:
|
||||
|
||||
@@ -2,8 +2,6 @@ apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: foreign-document-test
|
||||
labels:
|
||||
pdb: protect
|
||||
spec:
|
||||
timeouts:
|
||||
pipeline: "2h0m0s"
|
||||
@@ -64,7 +62,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
||||
- name: pathInRepo
|
||||
value: task/git-clone/0.1/git-clone.yaml
|
||||
resolver: git
|
||||
@@ -103,7 +101,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
params:
|
||||
@@ -121,7 +119,7 @@ spec:
|
||||
- --import-cache
|
||||
- "type=registry,ref=$(params.image-name):buildcache"
|
||||
- --export-cache
|
||||
- "type=registry,ref=$(params.image-name):buildcache,mode=max,compression=zstd,compression-level=22,rewrite-timestamp=true,image-manifest=true,oci-mediatypes=true"
|
||||
- "type=registry,ref=$(params.image-name):buildcache,mode=max,compression=zstd,compression-level=22,image-manifest=true,oci-mediatypes=true"
|
||||
- --opt
|
||||
- build-arg:SOURCE_DATE_EPOCH=$(tasks.get-git-commit-time.results.unix-time)
|
||||
- name: BUILDKITD_TOML
|
||||
|
||||
@@ -2,8 +2,6 @@ apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: rust-format
|
||||
labels:
|
||||
pdb: protect
|
||||
spec:
|
||||
timeouts:
|
||||
pipeline: "2h0m0s"
|
||||
@@ -64,7 +62,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
||||
- name: pathInRepo
|
||||
value: task/git-clone/0.1/git-clone.yaml
|
||||
resolver: git
|
||||
@@ -103,7 +101,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
params:
|
||||
|
||||
@@ -2,8 +2,6 @@ apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: rust-clippy
|
||||
labels:
|
||||
pdb: protect
|
||||
spec:
|
||||
taskRunTemplate:
|
||||
serviceAccountName: build-bot
|
||||
@@ -64,7 +62,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
||||
- name: pathInRepo
|
||||
value: task/git-clone/0.1/git-clone.yaml
|
||||
resolver: git
|
||||
@@ -103,7 +101,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
params:
|
||||
|
||||
@@ -2,8 +2,6 @@ apiVersion: tekton.dev/v1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: rust-test
|
||||
labels:
|
||||
pdb: protect
|
||||
spec:
|
||||
timeouts:
|
||||
pipeline: "2h0m0s"
|
||||
@@ -64,7 +62,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
||||
- name: pathInRepo
|
||||
value: task/git-clone/0.1/git-clone.yaml
|
||||
resolver: git
|
||||
@@ -103,7 +101,7 @@ spec:
|
||||
- name: url
|
||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||
- name: revision
|
||||
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
||||
- name: pathInRepo
|
||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||
params:
|
||||
|
||||
79
flake.nix
79
flake.nix
@@ -35,9 +35,9 @@
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
rustToolchain = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override {
|
||||
targets = [ "wasm32-unknown-unknown" ];
|
||||
};
|
||||
rustToolchain =
|
||||
(pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override
|
||||
{ targets = [ "wasm32-unknown-unknown" ]; };
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
@@ -57,46 +57,11 @@
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
appliedOverlay = self.overlays.default pkgs pkgs;
|
||||
in
|
||||
rec {
|
||||
default = all;
|
||||
all = pkgs.symlinkJoin {
|
||||
name = "all";
|
||||
paths = [
|
||||
library
|
||||
devTools
|
||||
wasm_bundler
|
||||
wasm_web
|
||||
];
|
||||
};
|
||||
inherit (appliedOverlay.organic)
|
||||
library
|
||||
devTools
|
||||
wasm_bundler
|
||||
wasm_web
|
||||
;
|
||||
docker_env = pkgs.buildEnv {
|
||||
name = "organic";
|
||||
paths = with pkgs; [
|
||||
appliedOverlay.organic.devTools
|
||||
bash
|
||||
uutils-coreutils-noprefix
|
||||
# toybox # Smaller than uutils-coreutils?
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
overlays.default = final: prev: {
|
||||
organic = final.lib.makeScope final.newScope (
|
||||
organicScope:
|
||||
let
|
||||
build_wasm =
|
||||
{
|
||||
bindgenTarget ? null,
|
||||
}:
|
||||
(organicScope.callPackage ./nix/package.nix {
|
||||
inherit rust-overlay;
|
||||
(pkgs.callPackage ./nix/package.nix {
|
||||
targetBins = [
|
||||
"wasm"
|
||||
];
|
||||
@@ -108,7 +73,7 @@
|
||||
old:
|
||||
let
|
||||
bindgen_command = [
|
||||
"${final.wasm-bindgen-cli}/bin/wasm-bindgen"
|
||||
"${pkgs.wasm-bindgen-cli}/bin/wasm-bindgen"
|
||||
"--target"
|
||||
bindgenTarget
|
||||
"--out-dir"
|
||||
@@ -118,7 +83,7 @@
|
||||
in
|
||||
{
|
||||
postBuild = ''
|
||||
${final.lib.escapeShellArgs bindgen_command}
|
||||
${pkgs.lib.escapeShellArgs bindgen_command}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
@@ -128,13 +93,17 @@
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
library =
|
||||
(organicScope.callPackage ./nix/package.nix {
|
||||
inherit rust-overlay;
|
||||
buildLib = true;
|
||||
}).overrideAttrs
|
||||
(
|
||||
rec {
|
||||
all = pkgs.symlinkJoin {
|
||||
name = "all";
|
||||
paths = [
|
||||
library
|
||||
devTools
|
||||
wasm_bundler
|
||||
wasm_web
|
||||
];
|
||||
};
|
||||
library = (pkgs.callPackage ./nix/package.nix { buildLib = true; }).overrideAttrs (
|
||||
old:
|
||||
let
|
||||
in
|
||||
@@ -145,8 +114,7 @@
|
||||
'';
|
||||
}
|
||||
);
|
||||
devTools = organicScope.callPackage ./nix/package.nix {
|
||||
inherit rust-overlay;
|
||||
devTools = pkgs.callPackage ./nix/package.nix {
|
||||
targetBins = [
|
||||
"parse"
|
||||
"compare"
|
||||
@@ -155,8 +123,17 @@
|
||||
};
|
||||
wasm_bundler = build_wasm { bindgenTarget = "bundler"; };
|
||||
wasm_web = build_wasm { bindgenTarget = "web"; };
|
||||
docker_env = pkgs.buildEnv {
|
||||
name = "organic";
|
||||
paths = with pkgs; [
|
||||
devTools
|
||||
bash
|
||||
uutils-coreutils-noprefix
|
||||
# toybox # Smaller than uutils-coreutils?
|
||||
];
|
||||
};
|
||||
default = all;
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
hello,
|
||||
lib,
|
||||
pkgs,
|
||||
rust-overlay,
|
||||
makeRustPlatform,
|
||||
pkgsBuildHost,
|
||||
|
||||
targetBins ? [ ],
|
||||
features ? [ ],
|
||||
@@ -12,11 +12,7 @@
|
||||
}:
|
||||
let
|
||||
cargoToml = (lib.importTOML ../Cargo.toml);
|
||||
rustPlatformFor =
|
||||
pkgs:
|
||||
let
|
||||
rust-bin = rust-overlay.lib.mkRustBin { } pkgs;
|
||||
rustToolchain = (rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override (
|
||||
rustToolchain = (pkgsBuildHost.rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override (
|
||||
if cargoBuildTarget != null then
|
||||
{
|
||||
targets = [ cargoBuildTarget ];
|
||||
@@ -25,7 +21,7 @@ let
|
||||
{ }
|
||||
);
|
||||
baseRustPlatform = (
|
||||
pkgs.makeRustPlatform {
|
||||
makeRustPlatform {
|
||||
cargo = rustToolchain;
|
||||
rustc = rustToolchain;
|
||||
}
|
||||
@@ -43,10 +39,7 @@ let
|
||||
else
|
||||
baseRustPlatform;
|
||||
in
|
||||
rustPlatform;
|
||||
in
|
||||
(rustPlatformFor pkgs).buildRustPackage (
|
||||
# rustPlatform.buildRustPackage (
|
||||
rustPlatform.buildRustPackage (
|
||||
{
|
||||
pname = "organic";
|
||||
version = cargoToml.package.version;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2026-05-23"
|
||||
channel = "nightly"
|
||||
profile = "default"
|
||||
components = ["clippy", "rustfmt"]
|
||||
|
||||
Reference in New Issue
Block a user