summary refs log tree commit diff
path: root/pkgs/development/nim-packages/fetch-nimble/builder.sh
blob: 693ab339408ed6e57d825e7472bb16f12d914d0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
source $stdenv/setup
export HOME=$NIX_BUILD_TOP

nimble --accept --noSSLCheck develop "${pkgname}@${version}"
# TODO: bring in the certificates for Nimble to verify the fetch of
# the package list.

pkgdir=${NIX_BUILD_TOP}/${pkgname}

find "$pkgdir" -name .git -print0 | xargs -0 rm -rf

cp -a "$pkgdir" "$out"