Nix For Lang Packaging: Difference between revisions
imported>Zimbatm Some thoughts on integrating Nix with $lang package managers |
imported>Samueldr m (syntaxhighlight!) |
||
Line 9: | Line 9: | ||
The first integration usually looks like this: | The first integration usually looks like this: | ||
<syntaxhighlight lang=nix> | |||
{ stdenv, lang }: | |||
stdenv.mkDerivation { | |||
name = "my-package"; | |||
src = "..."; | |||
buildInputs = [ lang ]; | |||
buildPhase = ''' | |||
lang build | |||
'''; | |||
installPhase = ''' | |||
cp buildfolder $out | |||
'''; | |||
} | |||
</syntaxhighlight> | |||
Where the `lang build` command: | Where the `lang build` command: |