aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-10 19:10:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-11 16:38:15 +0200
commitdb343436f0e678ef3a97e6f8ac559ffa0507e422 (patch)
tree882fd0a0fa2fa41fac62a929a93aba09f5eea4d5 /lib
parent34c7b88e16d1768b1b9a0cfa6dd21ea5d9b1b308 (diff)
downloadNix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.gz
Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.zst
Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.zip
Migrate mylibs to niv (work in progress)
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 26557ed..57bde79 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -12,28 +12,4 @@ rec {
12 name = "${pname}-${version}"; 12 name = "${pname}-${version}";
13 src = fetchFromGitHub json.github; 13 src = fetchFromGitHub json.github;
14 }; 14 };
15
16 fetchedGit = path:
17 let
18 json = lib.importJSON path;
19 in rec {
20 version = json.tag;
21 pname = json.meta.name;
22 name = "${pname}-${version}";
23 src = fetchgit json.git;
24 };
25
26 fetchedGitPrivate = path:
27 let
28 json = lib.importJSON path;
29 in rec {
30 version = json.tag;
31 pname = json.meta.name;
32 name = "${pname}-${version}";
33 src = builtins.fetchGit {
34 url = json.git.url;
35 ref = "master";
36 rev = json.git.rev;
37 };
38 };
39} // (if builtins.pathExists ./private then callPackage ./private {} else {}) 15} // (if builtins.pathExists ./private then callPackage ./private {} else {})