pa-06
This commit is contained in:
0
pa-06/a1/flake.lock → pa-06/a2/flake.lock
generated
0
pa-06/a1/flake.lock → pa-06/a2/flake.lock
generated
@@ -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";
|
||||
Reference in New Issue
Block a user