diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 14:05:15 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 14:05:15 +0200 |
commit | dff8b5932bd45c9b3c21209e076b0c0d140bc2f5 (patch) | |
tree | 0fc2237e7ebdd2ce7c8ab40a960d3c6abee62d8e | |
parent | 676e68e3394eeb07a02745d1cf191db9fee9e610 (diff) | |
download | Nix-dff8b5932bd45c9b3c21209e076b0c0d140bc2f5.tar.gz Nix-dff8b5932bd45c9b3c21209e076b0c0d140bc2f5.tar.zst Nix-dff8b5932bd45c9b3c21209e076b0c0d140bc2f5.zip |
Use mylibs explicitly in pkgs
-rw-r--r-- | default.nix | 31 | ||||
-rw-r--r-- | pkgs/cnagios/default.nix | 4 | ||||
-rw-r--r-- | pkgs/crypto/cardano/default.nix | 4 | ||||
-rw-r--r-- | pkgs/crypto/iota-cli-app/default.nix | 4 | ||||
-rw-r--r-- | pkgs/flrn/default.nix | 4 | ||||
-rw-r--r-- | pkgs/mutt-ics/default.nix | 4 | ||||
-rw-r--r-- | pkgs/nagios-cli/default.nix | 4 | ||||
-rw-r--r-- | pkgs/nagnu/default.nix | 4 | ||||
-rw-r--r-- | pkgs/pg_activity/default.nix | 4 | ||||
-rw-r--r-- | pkgs/pgloader/default.nix | 4 | ||||
-rw-r--r-- | pkgs/telegram-cli/default.nix | 4 | ||||
-rw-r--r-- | pkgs/telegram-history-dump/default.nix | 4 | ||||
-rw-r--r-- | pkgs/telegramircd/default.nix | 4 |
13 files changed, 36 insertions, 43 deletions
diff --git a/default.nix b/default.nix index 1bac63e..5d9e138 100644 --- a/default.nix +++ b/default.nix | |||
@@ -1,39 +1,32 @@ | |||
1 | with import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); }; | 1 | with import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); }; |
2 | with mylibs; | ||
3 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh | 2 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh |
4 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks | 3 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks |
5 | { | 4 | { |
6 | boinctui = callPackage ./pkgs/boinctui {}; | 5 | boinctui = callPackage ./pkgs/boinctui {}; |
7 | cnagios = callPackage ./pkgs/cnagios { inherit fetchedGithub; }; | 6 | cnagios = callPackage ./pkgs/cnagios {}; |
8 | duply = callPackage ./pkgs/duply {}; | 7 | duply = callPackage ./pkgs/duply {}; |
9 | flrn = callPackage ./pkgs/flrn { | 8 | flrn = callPackage ./pkgs/flrn { slang = callPackage ./pkgs/slang_1 {}; }; |
10 | slang = callPackage ./pkgs/slang_1 {}; | ||
11 | inherit fetchedGithub; | ||
12 | }; | ||
13 | genius = callPackage ./pkgs/genius {}; | 9 | genius = callPackage ./pkgs/genius {}; |
14 | mtop = callPackage ./pkgs/mtop {}; | 10 | mtop = callPackage ./pkgs/mtop {}; |
15 | muttprint = callPackage ./pkgs/muttprint {}; | 11 | muttprint = callPackage ./pkgs/muttprint {}; |
16 | mutt-ics = callPackage ./pkgs/mutt-ics { inherit fetchedGithub; }; | 12 | mutt-ics = callPackage ./pkgs/mutt-ics {}; |
17 | nagios-cli = callPackage ./pkgs/nagios-cli { inherit fetchedGithub; }; | 13 | nagios-cli = callPackage ./pkgs/nagios-cli {}; |
18 | #nagnu = callPackage ./pkgs/nagnu { inherit fetchedGithub; }; | 14 | #nagnu = callPackage ./pkgs/nagnu {}; |
19 | note = callPackage ./pkgs/note {}; | 15 | note = callPackage ./pkgs/note {}; |
20 | notmuch-python2 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; | 16 | notmuch-python2 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; |
21 | notmuch-python3 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; | 17 | notmuch-python3 = callPackage ./pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; |
22 | notmuch-vim = callPackage ./pkgs/notmuch/notmuch-vim {}; | 18 | notmuch-vim = callPackage ./pkgs/notmuch/notmuch-vim {}; |
23 | pg_activity = callPackage ./pkgs/pg_activity { inherit fetchedGithub; }; | 19 | pg_activity = callPackage ./pkgs/pg_activity {}; |
24 | pgloader = callPackage ./pkgs/pgloader { inherit fetchedGithub; }; | 20 | pgloader = callPackage ./pkgs/pgloader {}; |
25 | telegram-cli = callPackage ./pkgs/telegram-cli { inherit fetchedGithub; }; | 21 | telegram-cli = callPackage ./pkgs/telegram-cli {}; |
26 | telegram-history-dump = callPackage ./pkgs/telegram-history-dump { inherit fetchedGithub; }; | 22 | telegram-history-dump = callPackage ./pkgs/telegram-history-dump {}; |
27 | telegramircd = callPackage ./pkgs/telegramircd { | 23 | telegramircd = callPackage ./pkgs/telegramircd { telethon = callPackage ./pkgs/telethon_sync {}; }; |
28 | telethon = callPackage ./pkgs/telethon_sync {}; | ||
29 | inherit fetchedGithub; | ||
30 | }; | ||
31 | terminal-velocity = callPackage ./pkgs/terminal-velocity {}; | 24 | terminal-velocity = callPackage ./pkgs/terminal-velocity {}; |
32 | tiv = callPackage ./pkgs/tiv {}; | 25 | tiv = callPackage ./pkgs/tiv {}; |
33 | unicode = callPackage ./pkgs/unicode {}; | 26 | unicode = callPackage ./pkgs/unicode {}; |
34 | 27 | ||
35 | cardano = callPackage ./pkgs/crypto/cardano { inherit fetchedGithub; }; | 28 | cardano = callPackage ./pkgs/crypto/cardano {}; |
36 | iota-cli-app = callPackage ./pkgs/crypto/iota-cli-app { inherit fetchedGithub; }; | 29 | iota-cli-app = callPackage ./pkgs/crypto/iota-cli-app {}; |
37 | sia = callPackage ./pkgs/crypto/sia {}; | 30 | sia = callPackage ./pkgs/crypto/sia {}; |
38 | } // { # overlays | 31 | } // { # overlays |
39 | inherit weboob; | 32 | inherit weboob; |
diff --git a/pkgs/cnagios/default.nix b/pkgs/cnagios/default.nix index 2e6c799..d5b52f3 100644 --- a/pkgs/cnagios/default.nix +++ b/pkgs/cnagios/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, fetchedGithub, perl, ncurses }: | 1 | { stdenv, mylibs, perl, ncurses }: |
2 | stdenv.mkDerivation (fetchedGithub ./cnagios.json // { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./cnagios.json // { |
3 | configureFlags = [ | 3 | configureFlags = [ |
4 | "--with-etc-dir=/etc/cnagios" | 4 | "--with-etc-dir=/etc/cnagios" |
5 | "--with-var-dir=/var/lib/naemon" | 5 | "--with-var-dir=/var/lib/naemon" |
diff --git a/pkgs/crypto/cardano/default.nix b/pkgs/crypto/cardano/default.nix index b7cfb9f..881928d 100644 --- a/pkgs/crypto/cardano/default.nix +++ b/pkgs/crypto/cardano/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { stdenv, fetchedGithub }: | 1 | { stdenv, mylibs }: |
2 | let | 2 | let |
3 | daedalusOrig = (import (fetchedGithub ./daedalus.json).src {}).daedalus; | 3 | daedalusOrig = (import (mylibs.fetchedGithub ./daedalus.json).src {}).daedalus; |
4 | cfg = stdenv.mkDerivation rec { | 4 | cfg = stdenv.mkDerivation rec { |
5 | name = "launcher-config-custom"; | 5 | name = "launcher-config-custom"; |
6 | src = daedalusOrig.cfg; | 6 | src = daedalusOrig.cfg; |
diff --git a/pkgs/crypto/iota-cli-app/default.nix b/pkgs/crypto/iota-cli-app/default.nix index a027098..b945fd9 100644 --- a/pkgs/crypto/iota-cli-app/default.nix +++ b/pkgs/crypto/iota-cli-app/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { stdenv, fetchedGithub, fetchurl, fetchgit, callPackage, nodePackages, nodejs-8_x }: | 1 | { stdenv, mylibs, fetchurl, fetchgit, callPackage, nodePackages, nodejs-8_x }: |
2 | let | 2 | let |
3 | nodeEnv = callPackage "${nodePackages.node2nix}/lib/node_modules/node2nix/nix/node-env.nix" { | 3 | nodeEnv = callPackage "${nodePackages.node2nix}/lib/node_modules/node2nix/nix/node-env.nix" { |
4 | nodejs = nodejs-8_x; | 4 | nodejs = nodejs-8_x; |
@@ -6,7 +6,7 @@ let | |||
6 | # built using node2nix -8 -l package-lock.json | 6 | # built using node2nix -8 -l package-lock.json |
7 | # and changing "./." to "src" | 7 | # and changing "./." to "src" |
8 | packageEnv = import ./iota-cli-app-node-packages.nix { | 8 | packageEnv = import ./iota-cli-app-node-packages.nix { |
9 | src = stdenv.mkDerivation (fetchedGithub ./iota-cli-app.json // { | 9 | src = stdenv.mkDerivation (mylibs.fetchedGithub ./iota-cli-app.json // { |
10 | phases = "installPhase"; | 10 | phases = "installPhase"; |
11 | installPhase = '' | 11 | installPhase = '' |
12 | cp -a $src $out | 12 | cp -a $src $out |
diff --git a/pkgs/flrn/default.nix b/pkgs/flrn/default.nix index 4240c57..f288615 100644 --- a/pkgs/flrn/default.nix +++ b/pkgs/flrn/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, fetchedGithub, libetpan, openssl, autoconf, groff, slang, yacc }: | 1 | { stdenv, mylibs, libetpan, openssl, autoconf, groff, slang, yacc }: |
2 | stdenv.mkDerivation (fetchedGithub ./flrn.json // { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./flrn.json // { |
3 | buildInputs = [ libetpan openssl autoconf groff slang yacc ]; | 3 | buildInputs = [ libetpan openssl autoconf groff slang yacc ]; |
4 | preConfigure = '' | 4 | preConfigure = '' |
5 | sed -i -e "s/test -e configure/false/" configure.in | 5 | sed -i -e "s/test -e configure/false/" configure.in |
diff --git a/pkgs/mutt-ics/default.nix b/pkgs/mutt-ics/default.nix index 26f95eb..a8a529b 100644 --- a/pkgs/mutt-ics/default.nix +++ b/pkgs/mutt-ics/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { python3Packages, fetchedGithub }: | 1 | { python3Packages, mylibs }: |
2 | with python3Packages; | 2 | with python3Packages; |
3 | buildPythonApplication (fetchedGithub ./mutt-ics.json // { | 3 | buildPythonApplication (mylibs.fetchedGithub ./mutt-ics.json // { |
4 | propagatedBuildInputs = [ icalendar ]; | 4 | propagatedBuildInputs = [ icalendar ]; |
5 | }) | 5 | }) |
diff --git a/pkgs/nagios-cli/default.nix b/pkgs/nagios-cli/default.nix index 35e3790..7d7e7cc 100644 --- a/pkgs/nagios-cli/default.nix +++ b/pkgs/nagios-cli/default.nix | |||
@@ -1,2 +1,2 @@ | |||
1 | { python2Packages, fetchedGithub }: | 1 | { python2Packages, mylibs }: |
2 | python2Packages.buildPythonApplication (fetchedGithub ./nagios-cli.json) | 2 | python2Packages.buildPythonApplication (mylibs.fetchedGithub ./nagios-cli.json) |
diff --git a/pkgs/nagnu/default.nix b/pkgs/nagnu/default.nix index 0056393..2b9c0ec 100644 --- a/pkgs/nagnu/default.nix +++ b/pkgs/nagnu/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, fetchedGithub, ncurses, curl }: | 1 | { stdenv, mylibs, ncurses, curl }: |
2 | stdenv.mkDerivation (fetchedGithub ./nagnu.json // rec { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./nagnu.json // rec { |
3 | buildInputs = [ ncurses curl ]; | 3 | buildInputs = [ ncurses curl ]; |
4 | installPhase = '' | 4 | installPhase = '' |
5 | mkdir -p $out/bin | 5 | mkdir -p $out/bin |
diff --git a/pkgs/pg_activity/default.nix b/pkgs/pg_activity/default.nix index f47884a..a20ee8a 100644 --- a/pkgs/pg_activity/default.nix +++ b/pkgs/pg_activity/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { python2Packages, fetchedGithub }: | 1 | { python2Packages, mylibs }: |
2 | with python2Packages; | 2 | with python2Packages; |
3 | buildPythonApplication (fetchedGithub ./pg_activity.json // { | 3 | buildPythonApplication (mylibs.fetchedGithub ./pg_activity.json // { |
4 | propagatedBuildInputs = [ psycopg2 psutil ]; | 4 | propagatedBuildInputs = [ psycopg2 psutil ]; |
5 | }) | 5 | }) |
diff --git a/pkgs/pgloader/default.nix b/pkgs/pgloader/default.nix index e4f24ea..c2c03e7 100644 --- a/pkgs/pgloader/default.nix +++ b/pkgs/pgloader/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, fetchedGithub, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }: | 1 | { stdenv, mylibs, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }: |
2 | stdenv.mkDerivation (fetchedGithub ./pgloader.json // { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./pgloader.json // { |
3 | buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ]; | 3 | buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ]; |
4 | LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ]; | 4 | LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ]; |
5 | buildPhase = '' | 5 | buildPhase = '' |
diff --git a/pkgs/telegram-cli/default.nix b/pkgs/telegram-cli/default.nix index 4b82b35..6987748 100644 --- a/pkgs/telegram-cli/default.nix +++ b/pkgs/telegram-cli/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, fetchedGithub, pkgconfig, libevent, lua, jansson, openssl, readline, zlib, libconfig }: | 1 | { stdenv, mylibs, pkgconfig, libevent, lua, jansson, openssl, readline, zlib, libconfig }: |
2 | stdenv.mkDerivation (fetchedGithub ./telegram-cli.json // { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./telegram-cli.json // { |
3 | patches = [ | 3 | patches = [ |
4 | ./telegram-cli.patch | 4 | ./telegram-cli.patch |
5 | ]; | 5 | ]; |
diff --git a/pkgs/telegram-history-dump/default.nix b/pkgs/telegram-history-dump/default.nix index 9215d5b..050b351 100644 --- a/pkgs/telegram-history-dump/default.nix +++ b/pkgs/telegram-history-dump/default.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv, ruby, fetchedGithub }: | 1 | { stdenv, ruby, mylibs }: |
2 | stdenv.mkDerivation (fetchedGithub ./telegram-history-dump.json // { | 2 | stdenv.mkDerivation (mylibs.fetchedGithub ./telegram-history-dump.json // { |
3 | installPhase = '' | 3 | installPhase = '' |
4 | mkdir -p $out/lib $out/bin | 4 | mkdir -p $out/lib $out/bin |
5 | cp -a $src $out/lib/telegram-history-dump | 5 | cp -a $src $out/lib/telegram-history-dump |
diff --git a/pkgs/telegramircd/default.nix b/pkgs/telegramircd/default.nix index 8c8bddc..2f1d7ca 100644 --- a/pkgs/telegramircd/default.nix +++ b/pkgs/telegramircd/default.nix | |||
@@ -1,11 +1,11 @@ | |||
1 | { openssl, telethon, python3Packages, fetchedGithub }: | 1 | { openssl, telethon, python3Packages, mylibs }: |
2 | with python3Packages; | 2 | with python3Packages; |
3 | buildPythonApplication rec { | 3 | buildPythonApplication rec { |
4 | format = "other"; | 4 | format = "other"; |
5 | pname = "telegramircd"; | 5 | pname = "telegramircd"; |
6 | version = "master"; | 6 | version = "master"; |
7 | propagatedBuildInputs = [ telethon aiohttp ConfigArgParse openssl ]; | 7 | propagatedBuildInputs = [ telethon aiohttp ConfigArgParse openssl ]; |
8 | src = (fetchedGithub ./telegramircd.json).src; | 8 | src = (mylibs.fetchedGithub ./telegramircd.json).src; |
9 | LD_LIBRARY_PATH = "${openssl.out}/lib"; | 9 | LD_LIBRARY_PATH = "${openssl.out}/lib"; |
10 | installPhase = '' | 10 | installPhase = '' |
11 | install -D $src/telegramircd.py $out/bin/telegramircd | 11 | install -D $src/telegramircd.py $out/bin/telegramircd |