summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorstuebinm2021-06-23 21:38:58 +0200
committerstuebinm2021-06-23 21:38:58 +0200
commit017d861c92ba4c5e889568842f3b6258d6ed96dc (patch)
tree2031a9e94a71ce294e00d74ff6d5fe9e8272cb04 /nix
parent1b59a5b367cfae616a7ecd814795de89432dc36b (diff)
update sources
Diffstat (limited to '')
-rw-r--r--nix/sources.json22
-rw-r--r--nix/sources.nix5
2 files changed, 15 insertions, 12 deletions
diff --git a/nix/sources.json b/nix/sources.json
index c112883..b61f355 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -5,10 +5,10 @@
"homepage": "https://github.com/nmattia/niv",
"owner": "nmattia",
"repo": "niv",
- "rev": "94080ae8286024820c570a2a24ed7c36d7ad04a9",
- "sha256": "0wlk52zwlrq727x3z1vg9d9qq4zw62ab5jzg4068iqb6hyb0cr0w",
+ "rev": "e0ca65c81a2d7a4d82a189f1e23a48d59ad42070",
+ "sha256": "1pq9nh1d8nn3xvbdny8fafzw87mj7gsmp6pxkdl65w2g18rmcmzx",
"type": "tarball",
- "url": "https://github.com/nmattia/niv/archive/94080ae8286024820c570a2a24ed7c36d7ad04a9.tar.gz",
+ "url": "https://github.com/nmattia/niv/archive/e0ca65c81a2d7a4d82a189f1e23a48d59ad42070.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
@@ -17,10 +17,10 @@
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "21ff9308b75d448765f7c3704a1459a3d8e1c844",
- "sha256": "0i32d1q5v9a0q4y1s010afn6vxljbliilq5cs63mk6sdw3kryj2b",
+ "rev": "d6a5be86b6adf99d0c853331460c6736785bfaaf",
+ "sha256": "0lsfrid5g880yqq5vqcbp0n61pgc9z25fbvzb0a8akrbn87jzjjl",
"type": "tarball",
- "url": "https://github.com/NixOS/nixpkgs/archive/21ff9308b75d448765f7c3704a1459a3d8e1c844.tar.gz",
+ "url": "https://github.com/NixOS/nixpkgs/archive/d6a5be86b6adf99d0c853331460c6736785bfaaf.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-unstable": {
@@ -29,16 +29,16 @@
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "94b2848559b12a8ed1fe433084686b2a81123c99",
- "sha256": "1pbl4c2dsaz2lximgd31m96jwbps6apn3anx8cvvhk1gl9rkg107",
+ "rev": "b27eaa18b47b77fbbf9f3bd7a17046b2d64b637b",
+ "sha256": "0vhqw7avmn9cimkqk6m2bn7ksjf52iqhv0r89myxm7yvy3wn7nhi",
"type": "tarball",
- "url": "https://github.com/NixOS/nixpkgs/archive/94b2848559b12a8ed1fe433084686b2a81123c99.tar.gz",
+ "url": "https://github.com/NixOS/nixpkgs/archive/b27eaa18b47b77fbbf9f3bd7a17046b2d64b637b.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"workadventure": {
- "ref": "master",
+ "branch": "master",
"repo": "https://stuebinm.eu/git/workadventure-nix",
- "rev": "6122eb04910dd6c34585dcbff72679a93b5aeaf5",
+ "rev": "cea6e1ce0b6ffab61fe304dceb049dce268c9b65",
"type": "git"
}
}
diff --git a/nix/sources.nix b/nix/sources.nix
index b796fff..1938409 100644
--- a/nix/sources.nix
+++ b/nix/sources.nix
@@ -98,7 +98,10 @@ let
saneName = stringAsChars (c: if isNull (builtins.match "[a-zA-Z0-9]" c) then "_" else c) name;
ersatz = builtins.getEnv "NIV_OVERRIDE_${saneName}";
in
- if ersatz == "" then drv else ersatz;
+ if ersatz == "" then drv else
+ # this turns the string into an actual Nix path (for both absolute and
+ # relative paths)
+ if builtins.substring 0 1 ersatz == "/" then /. + ersatz else /. + builtins.getEnv "PWD" + "/${ersatz}";
# Ports of functions for older nix versions