diff options
| author | Claudius Holeksa <mail@keldu.de> | 2023-05-10 11:42:47 +0200 |
|---|---|---|
| committer | Claudius Holeksa <mail@keldu.de> | 2023-05-10 11:42:47 +0200 |
| commit | e8778aba27e0737b4212d4b5fca9af531b975d40 (patch) | |
| tree | 0f1cfc1ccbfa8bb2b72582071803453b6d5c222d /example/.nix/derivation.nix | |
| parent | ffc0a775ce95d08ad6fa3f45cf2d100901466c1b (diff) | |
| download | mini-test-e8778aba27e0737b4212d4b5fca9af531b975d40.tar.gz | |
Fixed an issue with incomplete compilation flags. Confirmed functionality by building an example
Diffstat (limited to 'example/.nix/derivation.nix')
| -rw-r--r-- | example/.nix/derivation.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/example/.nix/derivation.nix b/example/.nix/derivation.nix new file mode 100644 index 0000000..763dc46 --- /dev/null +++ b/example/.nix/derivation.nix @@ -0,0 +1,25 @@ +{ lib +, stdenvNoCC +, clang +, gnumake +, kel-test +}: + +stdenvNoCC.mkDerivation { + pname = "kel-test-example"; + version = "0.0.0"; + + src = ./..; + + nativeBuildInputs = [ + clang + gnumake + kel-test + ]; + + installPhase = '' + PREFIX=$out make install + ''; + + output = [ "out" ]; +} |
