diff options
author | Hussein Ait Lahcen <hussein.aitlahcen@gmail.com> | 2018-06-25 12:03:09 +0200 |
---|---|---|
committer | Hussein Ait Lahcen <hussein.aitlahcen@gmail.com> | 2018-06-25 14:00:25 +0200 |
commit | 266a698ef2a6f297d772a1a221c83d0c1df76cc6 (patch) | |
tree | 849532c843dfdb9b797a8bc31b96e4ce9188a88d | |
parent | ea59684d2272824c06d4a4373bd69fa2e54a2764 (diff) | |
download | clever-tools-nix-266a698ef2a6f297d772a1a221c83d0c1df76cc6.tar.gz clever-tools-nix-266a698ef2a6f297d772a1a221c83d0c1df76cc6.tar.zst clever-tools-nix-266a698ef2a6f297d772a1a221c83d0c1df76cc6.zip |
add: introduce recursive versionning
-rw-r--r-- | default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/default.nix b/default.nix index e40d19a..e8849a1 100644 --- a/default.nix +++ b/default.nix | |||
@@ -1,4 +1,15 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: with pkgs; | 1 | { pkgs ? import <nixpkgs> {} }: with pkgs; |
2 | let | ||
3 | mkOlderVersion = { rev, sha256 }: | ||
4 | let | ||
5 | olderVersion = fetchFromGitHub { | ||
6 | owner = "fretlink"; | ||
7 | repo = "clever-tools-nix"; | ||
8 | inherit rev; | ||
9 | inherit sha256; | ||
10 | }; | ||
11 | in (import olderVersion {}).latest; | ||
12 | in | ||
2 | { | 13 | { |
3 | latest = callPackage ./clever-tools { | 14 | latest = callPackage ./clever-tools { |
4 | nodegit = callPackage ./nodegit {}; | 15 | nodegit = callPackage ./nodegit {}; |