Skip to content

Instantly share code, notes, and snippets.

@kloenk
Created September 17, 2020 20:03
Show Gist options
  • Save kloenk/ffd33c3190ed08d06b7c01e9d9fde9d2 to your computer and use it in GitHub Desktop.
Save kloenk/ffd33c3190ed08d06b7c01e9d9fde9d2 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> { };
crate = pkgs.fetchurl {
url = "https://crates.io/api/v1/crates/aho-corasick/0.7.13/download";
sha256 = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86";
name = "aho-corasick.crate";
};
in pkgs.runCommandNoCC "aho-corasick" { } ''
mkdir -p $out
tar xvf ${crate} -C $out
''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment