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,
|
pkgs,
|
||||||
system,
|
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'
|
# Per-system attributes can be defined here. The self' and inputs'
|
||||||
# module parameters provide easy access to attributes of the same
|
# module parameters provide easy access to attributes of the same
|
||||||
# system.
|
# 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";
|
a = mkTask "a";
|
||||||
b = mkTask "b";
|
b = mkTask "b";
|
||||||
c = mkTask "c";
|
c = mkTask "c";
|
||||||
Reference in New Issue
Block a user