Compare commits
6 Commits
2e77d9c95f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
336b5d3d54
|
||
|
|
cef89303b1
|
||
|
|
842a77fb2b
|
||
|
|
957bb3a5c8
|
||
|
|
de6739f9b6
|
||
|
|
656e26e26f
|
@@ -2,6 +2,8 @@ apiVersion: tekton.dev/v1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: build
|
name: build
|
||||||
|
labels:
|
||||||
|
pdb: protect
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
pipeline: "2h0m0s"
|
pipeline: "2h0m0s"
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/git-clone/0.1/git-clone.yaml
|
value: task/git-clone/0.1/git-clone.yaml
|
||||||
resolver: git
|
resolver: git
|
||||||
@@ -101,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: tekton.dev/v1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: foreign-document-test
|
name: foreign-document-test
|
||||||
|
labels:
|
||||||
|
pdb: protect
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
pipeline: "2h0m0s"
|
pipeline: "2h0m0s"
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/git-clone/0.1/git-clone.yaml
|
value: task/git-clone/0.1/git-clone.yaml
|
||||||
resolver: git
|
resolver: git
|
||||||
@@ -101,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: tekton.dev/v1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: rust-format
|
name: rust-format
|
||||||
|
labels:
|
||||||
|
pdb: protect
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
pipeline: "2h0m0s"
|
pipeline: "2h0m0s"
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/git-clone/0.1/git-clone.yaml
|
value: task/git-clone/0.1/git-clone.yaml
|
||||||
resolver: git
|
resolver: git
|
||||||
@@ -101,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: tekton.dev/v1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: rust-clippy
|
name: rust-clippy
|
||||||
|
labels:
|
||||||
|
pdb: protect
|
||||||
spec:
|
spec:
|
||||||
taskRunTemplate:
|
taskRunTemplate:
|
||||||
serviceAccountName: build-bot
|
serviceAccountName: build-bot
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/git-clone/0.1/git-clone.yaml
|
value: task/git-clone/0.1/git-clone.yaml
|
||||||
resolver: git
|
resolver: git
|
||||||
@@ -101,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ apiVersion: tekton.dev/v1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: rust-test
|
name: rust-test
|
||||||
|
labels:
|
||||||
|
pdb: protect
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
pipeline: "2h0m0s"
|
pipeline: "2h0m0s"
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: "31376f29c6332ea8c378152d5ccda1ba9dbcd7bb"
|
value: "dda7b690195b43e8b9859d1caf5dcbf48588ade1"
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/git-clone/0.1/git-clone.yaml
|
value: task/git-clone/0.1/git-clone.yaml
|
||||||
resolver: git
|
resolver: git
|
||||||
@@ -101,7 +103,7 @@ spec:
|
|||||||
- name: url
|
- name: url
|
||||||
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
|
||||||
- name: revision
|
- name: revision
|
||||||
value: 31376f29c6332ea8c378152d5ccda1ba9dbcd7bb
|
value: dda7b690195b43e8b9859d1caf5dcbf48588ade1
|
||||||
- name: pathInRepo
|
- name: pathInRepo
|
||||||
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
|
||||||
params:
|
params:
|
||||||
|
|||||||
@@ -17,15 +17,17 @@ RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev
|
|||||||
|
|
||||||
|
|
||||||
FROM build AS build-emacs
|
FROM build AS build-emacs
|
||||||
ARG EMACS_VERSION
|
|
||||||
ARG EMACS_REPO
|
ARG EMACS_REPO
|
||||||
RUN git clone --depth 1 --branch $EMACS_VERSION $EMACS_REPO /root/emacs
|
ARG EMACS_VERSION
|
||||||
|
ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs
|
||||||
WORKDIR /root/emacs
|
WORKDIR /root/emacs
|
||||||
RUN mkdir /root/dist
|
RUN <<EOF
|
||||||
RUN ./autogen.sh
|
mkdir /root/dist
|
||||||
RUN ./configure --prefix /usr --without-x --without-sound --with-native-compilation=aot
|
./autogen.sh
|
||||||
RUN make
|
./configure --prefix /usr --without-x --without-sound --with-native-compilation=aot
|
||||||
RUN make DESTDIR="/root/dist" install
|
make
|
||||||
|
make DESTDIR="/root/dist" install
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
FROM build AS build-org-mode
|
FROM build AS build-org-mode
|
||||||
@@ -37,8 +39,10 @@ RUN mkdir /root/dist
|
|||||||
RUN git clone $ORG_MODE_REPO /root/org-mode && git -C /root/org-mode checkout $ORG_VERSION
|
RUN git clone $ORG_MODE_REPO /root/org-mode && git -C /root/org-mode checkout $ORG_VERSION
|
||||||
# RUN mkdir /root/org-mode && git -C /root/org-mode init --initial-branch=main && git -C /root/org-mode remote add origin $ORG_REPO && git -C /root/org-mode fetch origin $ORG_VERSION && git -C /root/org-mode checkout FETCH_HEAD
|
# RUN mkdir /root/org-mode && git -C /root/org-mode init --initial-branch=main && git -C /root/org-mode remote add origin $ORG_REPO && git -C /root/org-mode fetch origin $ORG_VERSION && git -C /root/org-mode checkout FETCH_HEAD
|
||||||
WORKDIR /root/org-mode
|
WORKDIR /root/org-mode
|
||||||
RUN make compile
|
RUN <<EOF
|
||||||
RUN make DESTDIR="/root/dist" install
|
make compile
|
||||||
|
make DESTDIR="/root/dist" install
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION AS tester
|
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION AS tester
|
||||||
@@ -118,8 +122,10 @@ RUN mkdir -p $LITERATE_BUILD_EMACS_PATH && git -C $LITERATE_BUILD_EMACS_PATH ini
|
|||||||
RUN rm $LITERATE_BUILD_EMACS_PATH/unused/aws.org
|
RUN rm $LITERATE_BUILD_EMACS_PATH/unused/aws.org
|
||||||
|
|
||||||
FROM tester as foreign-document
|
FROM tester as foreign-document
|
||||||
RUN apk add --no-cache bash coreutils
|
RUN <<EOF
|
||||||
RUN mkdir /foreign_documents
|
apk add --no-cache bash coreutils
|
||||||
|
mkdir /foreign_documents
|
||||||
|
EOF
|
||||||
COPY --link --from=foreign-document-gather /foreign_documents/howardabrams /foreign_documents/howardabrams
|
COPY --link --from=foreign-document-gather /foreign_documents/howardabrams /foreign_documents/howardabrams
|
||||||
COPY --link --from=foreign-document-gather /foreign_documents/doomemacs /foreign_documents/doomemacs
|
COPY --link --from=foreign-document-gather /foreign_documents/doomemacs /foreign_documents/doomemacs
|
||||||
COPY --link --from=foreign-document-gather /foreign_documents/worg /foreign_documents/worg
|
COPY --link --from=foreign-document-gather /foreign_documents/worg /foreign_documents/worg
|
||||||
|
|||||||
143
flake.nix
143
flake.nix
@@ -35,9 +35,9 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
};
|
};
|
||||||
rustToolchain =
|
rustToolchain = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override {
|
||||||
(pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override
|
targets = [ "wasm32-unknown-unknown" ];
|
||||||
{ targets = [ "wasm32-unknown-unknown" ]; };
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
@@ -57,43 +57,10 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
};
|
};
|
||||||
build_wasm =
|
appliedOverlay = self.overlays.default pkgs pkgs;
|
||||||
{
|
|
||||||
bindgenTarget ? null,
|
|
||||||
}:
|
|
||||||
(pkgs.callPackage ./nix/package.nix {
|
|
||||||
targetBins = [
|
|
||||||
"wasm"
|
|
||||||
];
|
|
||||||
features = [ "wasm" ];
|
|
||||||
cargoBuildTarget = "wasm32-unknown-unknown";
|
|
||||||
buildType = "wasm";
|
|
||||||
}).overrideAttrs
|
|
||||||
(
|
|
||||||
old:
|
|
||||||
let
|
|
||||||
bindgen_command = [
|
|
||||||
"${pkgs.wasm-bindgen-cli}/bin/wasm-bindgen"
|
|
||||||
"--target"
|
|
||||||
bindgenTarget
|
|
||||||
"--out-dir"
|
|
||||||
"target/wasm32-unknown-unknown/${bindgenTarget}"
|
|
||||||
"target/wasm32-unknown-unknown/wasm/wasm.wasm"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
postBuild = ''
|
|
||||||
${pkgs.lib.escapeShellArgs bindgen_command}
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/${bindgenTarget}
|
|
||||||
cp target/wasm32-unknown-unknown/${bindgenTarget}/* $out/share/${bindgenTarget}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
);
|
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
default = all;
|
||||||
all = pkgs.symlinkJoin {
|
all = pkgs.symlinkJoin {
|
||||||
name = "all";
|
name = "all";
|
||||||
paths = [
|
paths = [
|
||||||
@@ -103,37 +70,93 @@
|
|||||||
wasm_web
|
wasm_web
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
library = (pkgs.callPackage ./nix/package.nix { buildLib = true; }).overrideAttrs (
|
inherit (appliedOverlay.organic)
|
||||||
old:
|
library
|
||||||
let
|
devTools
|
||||||
in
|
wasm_bundler
|
||||||
{
|
wasm_web
|
||||||
installPhase = ''
|
;
|
||||||
mkdir -p $out/lib
|
|
||||||
cp target/*/release/liborganic.rlib $out/lib/
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
);
|
|
||||||
devTools = pkgs.callPackage ./nix/package.nix {
|
|
||||||
targetBins = [
|
|
||||||
"parse"
|
|
||||||
"compare"
|
|
||||||
];
|
|
||||||
features = [ "compare" ];
|
|
||||||
};
|
|
||||||
wasm_bundler = build_wasm { bindgenTarget = "bundler"; };
|
|
||||||
wasm_web = build_wasm { bindgenTarget = "web"; };
|
|
||||||
docker_env = pkgs.buildEnv {
|
docker_env = pkgs.buildEnv {
|
||||||
name = "organic";
|
name = "organic";
|
||||||
paths = with pkgs; [
|
paths = with pkgs; [
|
||||||
devTools
|
appliedOverlay.organic.devTools
|
||||||
bash
|
bash
|
||||||
uutils-coreutils-noprefix
|
uutils-coreutils-noprefix
|
||||||
# toybox # Smaller than uutils-coreutils?
|
# toybox # Smaller than uutils-coreutils?
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
default = all;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
overlays.default = final: prev: {
|
||||||
|
organic = final.lib.makeScope final.newScope (
|
||||||
|
organicScope:
|
||||||
|
let
|
||||||
|
build_wasm =
|
||||||
|
{
|
||||||
|
bindgenTarget ? null,
|
||||||
|
}:
|
||||||
|
(organicScope.callPackage ./nix/package.nix {
|
||||||
|
inherit rust-overlay;
|
||||||
|
targetBins = [
|
||||||
|
"wasm"
|
||||||
|
];
|
||||||
|
features = [ "wasm" ];
|
||||||
|
cargoBuildTarget = "wasm32-unknown-unknown";
|
||||||
|
buildType = "wasm";
|
||||||
|
}).overrideAttrs
|
||||||
|
(
|
||||||
|
old:
|
||||||
|
let
|
||||||
|
bindgen_command = [
|
||||||
|
"${final.wasm-bindgen-cli}/bin/wasm-bindgen"
|
||||||
|
"--target"
|
||||||
|
bindgenTarget
|
||||||
|
"--out-dir"
|
||||||
|
"target/wasm32-unknown-unknown/${bindgenTarget}"
|
||||||
|
"target/wasm32-unknown-unknown/wasm/wasm.wasm"
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
postBuild = ''
|
||||||
|
${final.lib.escapeShellArgs bindgen_command}
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/${bindgenTarget}
|
||||||
|
cp target/wasm32-unknown-unknown/${bindgenTarget}/* $out/share/${bindgenTarget}
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
library =
|
||||||
|
(organicScope.callPackage ./nix/package.nix {
|
||||||
|
inherit rust-overlay;
|
||||||
|
buildLib = true;
|
||||||
|
}).overrideAttrs
|
||||||
|
(
|
||||||
|
old:
|
||||||
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib
|
||||||
|
cp target/*/release/liborganic.rlib $out/lib/
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
devTools = organicScope.callPackage ./nix/package.nix {
|
||||||
|
inherit rust-overlay;
|
||||||
|
targetBins = [
|
||||||
|
"parse"
|
||||||
|
"compare"
|
||||||
|
];
|
||||||
|
features = [ "compare" ];
|
||||||
|
};
|
||||||
|
wasm_bundler = build_wasm { bindgenTarget = "bundler"; };
|
||||||
|
wasm_web = build_wasm { bindgenTarget = "web"; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
hello,
|
hello,
|
||||||
lib,
|
lib,
|
||||||
makeRustPlatform,
|
pkgs,
|
||||||
pkgsBuildHost,
|
rust-overlay,
|
||||||
|
|
||||||
targetBins ? [ ],
|
targetBins ? [ ],
|
||||||
features ? [ ],
|
features ? [ ],
|
||||||
@@ -12,34 +12,41 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cargoToml = (lib.importTOML ../Cargo.toml);
|
cargoToml = (lib.importTOML ../Cargo.toml);
|
||||||
rustToolchain = (pkgsBuildHost.rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override (
|
rustPlatformFor =
|
||||||
if cargoBuildTarget != null then
|
pkgs:
|
||||||
{
|
let
|
||||||
targets = [ cargoBuildTarget ];
|
rust-bin = rust-overlay.lib.mkRustBin { } pkgs;
|
||||||
}
|
rustToolchain = (rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override (
|
||||||
else
|
if cargoBuildTarget != null then
|
||||||
{ }
|
{
|
||||||
);
|
targets = [ cargoBuildTarget ];
|
||||||
baseRustPlatform = (
|
}
|
||||||
makeRustPlatform {
|
else
|
||||||
cargo = rustToolchain;
|
{ }
|
||||||
rustc = rustToolchain;
|
);
|
||||||
}
|
baseRustPlatform = (
|
||||||
);
|
pkgs.makeRustPlatform {
|
||||||
rustPlatform =
|
cargo = rustToolchain;
|
||||||
if cargoBuildTarget != null then
|
rustc = rustToolchain;
|
||||||
baseRustPlatform.overrideScope (
|
|
||||||
final: prev: {
|
|
||||||
cargoBuildHook = prev.cargoBuildHook.overrideDerivation (_: {
|
|
||||||
rustcTargetSpec = cargoBuildTarget;
|
|
||||||
});
|
|
||||||
cargoInstallHook = hello;
|
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
else
|
rustPlatform =
|
||||||
baseRustPlatform;
|
if cargoBuildTarget != null then
|
||||||
|
baseRustPlatform.overrideScope (
|
||||||
|
final: prev: {
|
||||||
|
cargoBuildHook = prev.cargoBuildHook.overrideDerivation (_: {
|
||||||
|
rustcTargetSpec = cargoBuildTarget;
|
||||||
|
});
|
||||||
|
cargoInstallHook = hello;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
else
|
||||||
|
baseRustPlatform;
|
||||||
|
in
|
||||||
|
rustPlatform;
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage (
|
(rustPlatformFor pkgs).buildRustPackage (
|
||||||
|
# rustPlatform.buildRustPackage (
|
||||||
{
|
{
|
||||||
pname = "organic";
|
pname = "organic";
|
||||||
version = cargoToml.package.version;
|
version = cargoToml.package.version;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly"
|
channel = "nightly-2026-05-23"
|
||||||
profile = "default"
|
profile = "default"
|
||||||
components = ["clippy", "rustfmt"]
|
components = ["clippy", "rustfmt"]
|
||||||
|
|||||||
Reference in New Issue
Block a user