diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/default.nix b/default.nix index 3772d44..c32d23f 100644 --- a/default.nix +++ b/default.nix | |||
@@ -1,10 +1,5 @@ | |||
1 | with import (builtins.fetchTarball { | 1 | with import ./libs.nix; |
2 | # FIXME: upgrade to nixpkgs 19 when stable and stick to stable | 2 | with nixpkgs_unstable; |
3 | # versions | ||
4 | name = "nixos-unstable-2018-12-08"; | ||
5 | url = https://github.com/nixos/nixpkgs/archive/61c3169a0e17d789c566d5b241bfe309ce4a6275.tar.gz; | ||
6 | sha256 = "0qbycg7wkb71v20rchlkafrjfpbk2fnlvvbh3ai9pyfisci5wxvq"; | ||
7 | }) {}; | ||
8 | let | 3 | let |
9 | stable_nixpkgs = import <nixpkgs> {}; | 4 | stable_nixpkgs = import <nixpkgs> {}; |
10 | mypkgs = {}; | 5 | mypkgs = {}; |
@@ -23,24 +18,6 @@ let | |||
23 | } | 18 | } |
24 | ''; | 19 | ''; |
25 | 20 | ||
26 | fetchedGithub = path: | ||
27 | let | ||
28 | json = lib.importJSON path; | ||
29 | in rec { | ||
30 | version = json.tag; | ||
31 | name = "${json.meta.name}-${version}"; | ||
32 | src = fetchFromGitHub json.github; | ||
33 | }; | ||
34 | |||
35 | fetchedGit = path: | ||
36 | let | ||
37 | json = lib.importJSON path; | ||
38 | in rec { | ||
39 | version = json.tag; | ||
40 | name = "${json.meta.name}-${version}"; | ||
41 | src = fetchgit json.git; | ||
42 | }; | ||
43 | |||
44 | mypkgs.ledger = (ledger.override { boost = boost166; }).overrideAttrs (_old: | 21 | mypkgs.ledger = (ledger.override { boost = boost166; }).overrideAttrs (_old: |
45 | fetchedGithub ./fetched/ledger.json // { | 22 | fetchedGithub ./fetched/ledger.json // { |
46 | postInstall = ""; | 23 | postInstall = ""; |