l 5: add acronym

This commit is contained in:
lassulus 2016-03-15 14:08:29 +01:00
parent bf8a0c66f9
commit f00acd3ad1
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
pkgs.writeScriptBin "acronym" ''
#! ${pkgs.bash}/bin/bash
acro=$1
curl -s http://www.acronymfinder.com/$acro.html \
| grep 'class="result-list__body__rank"' \
| sed 's/.*title="\([^"]*\)".*/\1/' \
| sed 's/^.* - //' \
| sed "s/'/'/g"
''

View File

@ -2,6 +2,7 @@
{
nixpkgs.config.packageOverrides = rec {
acronym = pkgs.callPackage ./acronym/default.nix {};
firefoxPlugins = {
noscript = pkgs.callPackage ./firefoxPlugins/noscript.nix {};
ublock = pkgs.callPackage ./firefoxPlugins/ublock.nix {};