mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
idrisPackages.build-idris-package: Install binaries
This commit is contained in:
parent
24f15a7f9e
commit
adfd54a8f2
@ -53,8 +53,20 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
idris --install ${ipkgName}.ipkg --ibcsubdir $out/libs
|
idris --install ${ipkgName}.ipkg --ibcsubdir $out/libs
|
||||||
|
|
||||||
IDRIS_DOC_PATH=$out/doc idris --installdoc ${ipkgName}.ipkg || true
|
IDRIS_DOC_PATH=$out/doc idris --installdoc ${ipkgName}.ipkg || true
|
||||||
|
|
||||||
|
# If the ipkg file defines an executable, install that
|
||||||
|
executable=$(grep -Po '^executable = \K.*' ${ipkgName}.ipkg || true)
|
||||||
|
# $executable intentionally not quoted because it must be quoted correctly
|
||||||
|
# in the ipkg file already
|
||||||
|
if [ ! -z "$executable" ] && [ -f $executable ]; then
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mv $executable $out/bin/$executable
|
||||||
|
fi
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user