mirror of
https://codeberg.org/spire/dispenser.git
synced 2026-06-03 18:14:06 +02:00
build deps
This commit is contained in:
parent
f93a8229e2
commit
f1f68181ea
3 changed files with 27 additions and 3 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -51,9 +51,22 @@ jobs:
|
||||||
name: palantir-${{ matrix.target }}
|
name: palantir-${{ matrix.target }}
|
||||||
path: result/bin/*
|
path: result/bin/*
|
||||||
|
|
||||||
|
build-nixpkgs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: check
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v20
|
||||||
|
- uses: icewind1991/attic-action@v1
|
||||||
|
with:
|
||||||
|
name: ci
|
||||||
|
instance: https://cache.icewind.me
|
||||||
|
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||||
|
- run: nix build .#dispenser
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build-nixpkgs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v20
|
- uses: cachix/install-nix-action@v20
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,11 @@
|
||||||
rustc = toolchain;
|
rustc = toolchain;
|
||||||
};
|
};
|
||||||
hostNaersk = naerskForTarget hostTarget;
|
hostNaersk = naerskForTarget hostTarget;
|
||||||
src = lib.sources.sourceByRegex (lib.cleanSource ./.) ["Cargo.*" "src" "src/.*"];
|
|
||||||
nearskOpt = {
|
nearskOpt = {
|
||||||
pname = "dispenser";
|
pname = "dispenser";
|
||||||
root = src;
|
|
||||||
|
inherit (pkgs.dispenser) src;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
libsodium
|
libsodium
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
|
||||||
10
package.nix
10
package.nix
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
stdenv,
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
libsodium,
|
||||||
|
pkg-config,
|
||||||
lib,
|
lib,
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.sources) sourceByRegex;
|
inherit (lib.sources) sourceByRegex;
|
||||||
|
|
@ -12,6 +14,14 @@ in
|
||||||
|
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libsodium
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue