Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created March 22, 2017 04:25
Show Gist options
  • Save chris-martin/efae0ecb6de277603e180c9a56575395 to your computer and use it in GitHub Desktop.
Save chris-martin/efae0ecb6de277603e180c9a56575395 to your computer and use it in GitHub Desktop.
let u2f-rules = let
rev = "e2ce7b157b76bb384f8aba7acbfa73af2dd2fee7";
url = "https://raw.githubusercontent.com/Yubico/libu2f-host/${rev}/70-u2f.rules";
sha256 = "0cydmprvfb442f0hcapd3ac8rb66q0basa89scyzxq1ls61c2cdf";
in pkgs.stdenv.mkDerivation {
src = pkgs.fetchurl { inherit url sha256; };
name = "u2f-rules";
unpackPhase = "true";
installPhase = ''
mkdir -p $out/lib/udev/rules.d
cp $src $out/lib/udev/rules.d/70-u2f.rules
'';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment