mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
45398d7b54
Add a nimPackages attrset with "buildNimPackage" and "fetchNimble".
21 lines
627 B
Nix
21 lines
627 B
Nix
{ lib, makeOverridable, stdenv, gitMinimal, nim, cacert }:
|
|
|
|
makeOverridable (
|
|
|
|
{ pname, version, hash ? lib.fakeHash,
|
|
|
|
meta ? { }, passthru ? { }, preferLocalBuild ? true }:
|
|
stdenv.mkDerivation {
|
|
inherit version meta passthru preferLocalBuild;
|
|
pname = pname + "-src";
|
|
pkgname = pname;
|
|
builder = ./builder.sh;
|
|
nativeBuildInputs = [ gitMinimal nim ];
|
|
outputHash = hash;
|
|
outputHashAlgo = null;
|
|
outputHashMode = "recursive";
|
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars
|
|
++ [ "GIT_PROXY_COMMAND" "SOCKS_SERVER" ];
|
|
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
})
|