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