aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix27
-rw-r--r--libs.nix29
-rw-r--r--virtual/packages.nix9
3 files changed, 33 insertions, 32 deletions
diff --git a/default.nix b/default.nix
index 3772d44..c32d23f 100644
--- a/default.nix
+++ b/default.nix
@@ -1,10 +1,5 @@
1with import (builtins.fetchTarball { 1with import ./libs.nix;
2 # FIXME: upgrade to nixpkgs 19 when stable and stick to stable 2with 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}) {};
8let 3let
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 = "";
diff --git a/libs.nix b/libs.nix
new file mode 100644
index 0000000..da13a03
--- /dev/null
+++ b/libs.nix
@@ -0,0 +1,29 @@
1let nixpkgs_unstable = import (builtins.fetchTarball {
2 # FIXME: upgrade to nixpkgs 19 when stable and stick to stable
3 # versions
4 name = "nixos-unstable-2018-12-08";
5 url = https://github.com/nixos/nixpkgs/archive/61c3169a0e17d789c566d5b241bfe309ce4a6275.tar.gz;
6 sha256 = "0qbycg7wkb71v20rchlkafrjfpbk2fnlvvbh3ai9pyfisci5wxvq";
7}) {};
8in
9 with nixpkgs_unstable;
10{
11 inherit nixpkgs_unstable;
12 fetchedGithub = path:
13 let
14 json = lib.importJSON path;
15 in rec {
16 version = json.tag;
17 name = "${json.meta.name}-${version}";
18 src = fetchFromGitHub json.github;
19 };
20
21 fetchedGit = path:
22 let
23 json = lib.importJSON path;
24 in rec {
25 version = json.tag;
26 name = "${json.meta.name}-${version}";
27 src = fetchgit json.git;
28 };
29}
diff --git a/virtual/packages.nix b/virtual/packages.nix
index 3e143a1..05b0e88 100644
--- a/virtual/packages.nix
+++ b/virtual/packages.nix
@@ -1,10 +1,5 @@
1with import (builtins.fetchTarball { 1with import ../libs.nix;
2 # FIXME: upgrade to nixpkgs 19 when stable and stick to stable 2with 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}) {};
8let 3let
9 adminer = rec { 4 adminer = rec {
10 webRoot = pkgs.stdenv.mkDerivation rec { 5 webRoot = pkgs.stdenv.mkDerivation rec {