diff options
author | Hussein Ait Lahcen <hussein.aitlahcen@gmail.com> | 2018-06-25 11:40:03 +0200 |
---|---|---|
committer | Hussein Ait Lahcen <hussein.aitlahcen@gmail.com> | 2018-06-25 11:41:23 +0200 |
commit | ea59684d2272824c06d4a4373bd69fa2e54a2764 (patch) | |
tree | f98ed9a7edcc0e9f3df4d8d79eefdf69dc2fedf8 | |
parent | 719156204e8a9569a687ec14ef88660da1eb08f3 (diff) | |
download | clever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.tar.gz clever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.tar.zst clever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.zip |
refact: update example
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | example.nix | 14 |
2 files changed, 12 insertions, 16 deletions
@@ -13,15 +13,13 @@ Main job of those derivations is to use patchelf to make it nix compliant. | |||
13 | ## How to use it | 13 | ## How to use it |
14 | 14 | ||
15 | ```nix | 15 | ```nix |
16 | { pkgs ? import <nixpkgs> {} }: | 16 | { pkgs ? import <nixpkgs> {} }: with pkgs; |
17 | 17 | ||
18 | let | 18 | let clever-tools = fetchFromGitHub { |
19 | clever-tools = pkgs.fetchFromGitHub | 19 | owner = "fretlink"; |
20 | { owner = "fmenou"; | ||
21 | repo = "clever-tools-nix"; | 20 | repo = "clever-tools-nix"; |
22 | rev = "7c2a7868b387ffd064dd14c51f7b18224cdc5c88"; | 21 | rev = "DESIRED_REVISION_HASH"; |
23 | sha256 = "0r4bc4k90xpq325djvsyix9a6hiabmd4nba14j0plgdrwgzb36rh"; | 22 | sha256 = "CONTENT_HASH"; |
24 | }; | 23 | }; |
25 | 24 | in (import clever-tools {}).latest # select appropriate version | |
26 | in import clever-tools { inherit pkgs; } | ||
27 | ``` | 25 | ``` |
diff --git a/example.nix b/example.nix index 1245fec..d7b53db 100644 --- a/example.nix +++ b/example.nix | |||
@@ -1,11 +1,9 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: | 1 | { pkgs ? import <nixpkgs> {} }: with pkgs; |
2 | 2 | ||
3 | let | 3 | let clever-tools = fetchFromGitHub { |
4 | clever-tools = pkgs.fetchFromGitHub | 4 | owner = "fretlink"; |
5 | { owner = "fmenou"; | ||
6 | repo = "clever-tools-nix"; | 5 | repo = "clever-tools-nix"; |
7 | rev = "7c2a7868b387ffd064dd14c51f7b18224cdc5c88"; | 6 | rev = "DESIRED_REVISION_HASH"; |
8 | sha256 = "0r4bc4k90xpq325djvsyix9a6hiabmd4nba14j0plgdrwgzb36rh"; | 7 | sha256 = "CONTENT_HASH"; |
9 | }; | 8 | }; |
10 | 9 | in (import clever-tools {}).latest # select appropriate version | |
11 | in import clever-tools { inherit pkgs; } | ||