templates/ada: move phases and inputs into derivation :P
This commit is contained in:
parent
11bcf40772
commit
bd872960d8
@ -17,7 +17,7 @@
|
|||||||
pname = "thing";
|
pname = "thing";
|
||||||
version = "v0.0.0";
|
version = "v0.0.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
};
|
buildInputs = with pkgs; [ gnat12 gprbuild ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
gprbuild thing
|
gprbuild thing
|
||||||
@ -27,6 +27,7 @@
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mv thing $out/bin
|
mv thing $out/bin
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.thing);
|
defaultPackage = forAllSystems (system: self.packages.${system}.thing);
|
||||||
|
Loading…
Reference in New Issue
Block a user