aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHussein Ait Lahcen <hussein.aitlahcen@gmail.com>2018-06-25 11:40:03 +0200
committerHussein Ait Lahcen <hussein.aitlahcen@gmail.com>2018-06-25 11:41:23 +0200
commitea59684d2272824c06d4a4373bd69fa2e54a2764 (patch)
treef98ed9a7edcc0e9f3df4d8d79eefdf69dc2fedf8
parent719156204e8a9569a687ec14ef88660da1eb08f3 (diff)
downloadclever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.tar.gz
clever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.tar.zst
clever-tools-nix-ea59684d2272824c06d4a4373bd69fa2e54a2764.zip
refact: update example
-rw-r--r--README.md14
-rw-r--r--example.nix14
2 files changed, 12 insertions, 16 deletions
diff --git a/README.md b/README.md
index 3e0c1bb..b47a4bc 100644
--- a/README.md
+++ b/README.md
@@ -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
18let 18let 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 24in (import clever-tools {}).latest # select appropriate version
26in 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
3let 3let 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 9in (import clever-tools {}).latest # select appropriate version
11in import clever-tools { inherit pkgs; }