l 5: add acronym
This commit is contained in:
parent
bf8a0c66f9
commit
f00acd3ad1
13
lass/5pkgs/acronym/default.nix
Normal file
13
lass/5pkgs/acronym/default.nix
Normal 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"
|
||||||
|
''
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs.config.packageOverrides = rec {
|
nixpkgs.config.packageOverrides = rec {
|
||||||
|
acronym = pkgs.callPackage ./acronym/default.nix {};
|
||||||
firefoxPlugins = {
|
firefoxPlugins = {
|
||||||
noscript = pkgs.callPackage ./firefoxPlugins/noscript.nix {};
|
noscript = pkgs.callPackage ./firefoxPlugins/noscript.nix {};
|
||||||
ublock = pkgs.callPackage ./firefoxPlugins/ublock.nix {};
|
ublock = pkgs.callPackage ./firefoxPlugins/ublock.nix {};
|
||||||
|
Loading…
Reference in New Issue
Block a user