Skip to content

Commit

Permalink
Merge pull request #10 from NuschtOS/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding authored Oct 14, 2024
2 parents 57e77cc + 5da4d27 commit 137b150
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
module: [ ixx, fixx ]
module: [ libixx, ixx, fixx ]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions fixx/LICENSE-APACHE
1 change: 1 addition & 0 deletions fixx/LICENSE-MIT
1 change: 1 addition & 0 deletions fixx/README.md
4 changes: 0 additions & 4 deletions fixx/derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ rustPlatform.buildRustPackage rec {
src = lib.cleanSource ../.;
cargoLock = import ../lockfile.nix;

postPatch = ''
cp README.md LICENSE-{APACHE,MIT} fixx
'';

nativeBuildInputs = [
binaryen
rustc.llvmPackages.lld
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
packages = {
ixx = pkgs.callPackage ./ixx/derivation.nix { };
fixx = pkgs.callPackage ./fixx/derivation.nix { };
libixx = pkgs.callPackage ./libixx/derivation.nix { };
};
}
);
Expand Down
15 changes: 15 additions & 0 deletions libixx/derivation.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ lib, rustPlatform }:

let
manifest = (lib.importTOML ./Cargo.toml).package;
in
rustPlatform.buildRustPackage rec {
pname = "libixx";
inherit (manifest) version;

src = lib.cleanSource ../.;
cargoLock = import ../lockfile.nix;

cargoBuildFlags = "-p ${pname}";
cargoTestFlags = "-p ${pname}";
}

0 comments on commit 137b150

Please sign in to comment.