This commit is contained in:
0qln committed 2025-12-01 11:43:29 +01:00
1 parent 1e70a6407d
commit 040f9566df
6 files changed
+18 -18

No files matched your search

View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
+18 -18
View File
@@ -23,28 +23,28 @@
pkgs,
system,
...
}: let
mkTask = part:
pkgs.stdenv.mkDerivation {
name = "a1-${part}";
src = ./.;
buildPhase = ''
cc ${part}.c -o ${part}.out
'';
installPhase = ''
mkdir -p $out/bin/
mv ${part}.out $out/bin/
'';
meta = {
mainProgram = "${part}.out";
};
};
in {
}: {
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
packages = {
packages = let
mkTask = part:
pkgs.stdenv.mkDerivation {
name = "a1-${part}";
src = ./.;
buildPhase = ''
cc ${part}.c -o ${part}.out
'';
installPhase = ''
mkdir -p $out/bin/
mv ${part}.out $out/bin/
'';
meta = {
mainProgram = "${part}.out";
};
};
in {
a = mkTask "a";
b = mkTask "b";
c = mkTask "c";