2
0
Fork 0

Add wrapped Nim-compiler to buildPackages overlay

This commit is contained in:
Ehmry - 2020-09-11 17:51:59 +02:00
parent 205fadc83d
commit e18dd92458
2 changed files with 29 additions and 2 deletions

View File

@ -1,5 +1,21 @@
{
"nodes": {
"nim-nixpkgs": {
"locked": {
"lastModified": 1599826892,
"narHash": "sha256-HC8dzETkLmIEJh7VIYWBRl4D8SN7Vg2FAMxaWy52oOo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5885021135ec04e9db30492bfceba6fa4da23329",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5885021135ec04e9db30492bfceba6fa4da23329",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1597134609,
@ -18,6 +34,7 @@
},
"root": {
"inputs": {
"nim-nixpkgs": "nim-nixpkgs",
"nixpkgs": "nixpkgs"
}
}

View File

@ -4,7 +4,10 @@
inputs.nixpkgs.url =
"github:ehmry/nixpkgs/de1c8a039fb0f2564526633ddfe9498354a5154b";
outputs = { self, nixpkgs }:
inputs.nim-nixpkgs.url =
"github:NixOS/nixpkgs/5885021135ec04e9db30492bfceba6fa4da23329";
outputs = { self, nixpkgs, nim-nixpkgs }:
let
localSystems = [ "x86_64-linux" ];
crossSystems = [ "aarch64-genode" "x86_64-genode" ];
@ -47,7 +50,14 @@
useLLVM = true;
};
config.allowUnsupportedSystem = true;
overlays = [ self.overlay ];
overlays = [
self.overlay
(prev: final: rec {
nim = final.callPackage
"${nim-nixpkgs}/pkgs/development/compilers/nim" { };
nim-unwrapped = nim.unwrapped;
})
];
});
in rec {