Skip to content

Commit

Permalink
Merge pull request #2 from Dich0tomy/fix/nix-code
Browse files Browse the repository at this point in the history
Fix nix code & docs
  • Loading branch information
ynqa authored May 28, 2024
2 parents 211824b + 115a3dd commit 84be9a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ Fetch the source and use it, e.g. in your shell:

```nix
let
pkgs = import <nixpkgs> {};
# At the time of writing this, pkgs need to be unstable for the package to build properly
# (requires Rust 1.74, stable has 1.73)
pkgs = import <nixpkgs-unstable> {};
sig = pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "ynqa";
repo = "sig";
rev = "v0.1.0";
hash = "sha256-KHXBeQFmuA3YO9AN5dkY/fl/z2RdbR6AqSSEGUNrxt4=";
rev = "<revision, e.g. master/v0.1.0/etc.>";
hash = ""; # Build first, put proper hash in place
}) {};
in
pkgs.mkShell {
Expand Down
10 changes: 8 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ in
pname = "sig";
inherit version;

src = ./.;
src = builtins.path {
path = ./.;
name = repo;
};

cargoHash = "sha256-yz/DPJJxtsHpJLpTMAYfsq9miIs48F+FeSnmkQ707uA=";
cargoLock = {
lockFile = ./Cargo.lock;
allowBuiltinFetchGit = true;
};

meta = {
description = "Interactive grep (for streaming)";
Expand Down

0 comments on commit 84be9a2

Please sign in to comment.