Skip to content

Commit 137b150

Browse files
authored
Merge pull request #10 from NuschtOS/ci
2 parents 57e77cc + 5da4d27 commit 137b150

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
module: [ ixx, fixx ]
19+
module: [ libixx, ixx, fixx ]
2020

2121
steps:
2222
- uses: actions/checkout@v4

fixx/LICENSE-APACHE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE-APACHE

fixx/LICENSE-MIT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE-MIT

fixx/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

fixx/derivation.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ rustPlatform.buildRustPackage rec {
1515
src = lib.cleanSource ../.;
1616
cargoLock = import ../lockfile.nix;
1717

18-
postPatch = ''
19-
cp README.md LICENSE-{APACHE,MIT} fixx
20-
'';
21-
2218
nativeBuildInputs = [
2319
binaryen
2420
rustc.llvmPackages.lld

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
packages = {
2828
ixx = pkgs.callPackage ./ixx/derivation.nix { };
2929
fixx = pkgs.callPackage ./fixx/derivation.nix { };
30+
libixx = pkgs.callPackage ./libixx/derivation.nix { };
3031
};
3132
}
3233
);

libixx/derivation.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{ lib, rustPlatform }:
2+
3+
let
4+
manifest = (lib.importTOML ./Cargo.toml).package;
5+
in
6+
rustPlatform.buildRustPackage rec {
7+
pname = "libixx";
8+
inherit (manifest) version;
9+
10+
src = lib.cleanSource ../.;
11+
cargoLock = import ../lockfile.nix;
12+
13+
cargoBuildFlags = "-p ${pname}";
14+
cargoTestFlags = "-p ${pname}";
15+
}

0 commit comments

Comments
 (0)