From ea59684d2272824c06d4a4373bd69fa2e54a2764 Mon Sep 17 00:00:00 2001 From: Hussein Ait Lahcen Date: Mon, 25 Jun 2018 11:40:03 +0200 Subject: refact: update example --- README.md | 14 ++++++-------- example.nix | 14 ++++++-------- 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. ## How to use it ```nix -{ pkgs ? import {} }: +{ pkgs ? import {} }: with pkgs; -let - clever-tools = pkgs.fetchFromGitHub - { owner = "fmenou"; +let clever-tools = fetchFromGitHub { + owner = "fretlink"; repo = "clever-tools-nix"; - rev = "7c2a7868b387ffd064dd14c51f7b18224cdc5c88"; - sha256 = "0r4bc4k90xpq325djvsyix9a6hiabmd4nba14j0plgdrwgzb36rh"; + rev = "DESIRED_REVISION_HASH"; + sha256 = "CONTENT_HASH"; }; - -in import clever-tools { inherit pkgs; } +in (import clever-tools {}).latest # select appropriate version ``` diff --git a/example.nix b/example.nix index 1245fec..d7b53db 100644 --- a/example.nix +++ b/example.nix @@ -1,11 +1,9 @@ -{ pkgs ? import {} }: +{ pkgs ? import {} }: with pkgs; -let - clever-tools = pkgs.fetchFromGitHub - { owner = "fmenou"; +let clever-tools = fetchFromGitHub { + owner = "fretlink"; repo = "clever-tools-nix"; - rev = "7c2a7868b387ffd064dd14c51f7b18224cdc5c88"; - sha256 = "0r4bc4k90xpq325djvsyix9a6hiabmd4nba14j0plgdrwgzb36rh"; + rev = "DESIRED_REVISION_HASH"; + sha256 = "CONTENT_HASH"; }; - -in import clever-tools { inherit pkgs; } +in (import clever-tools {}).latest # select appropriate version -- cgit v1.2.3