mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
45398d7b54
Add a nimPackages attrset with "buildNimPackage" and "fetchNimble".
12 lines
311 B
Bash
12 lines
311 B
Bash
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"
|