citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 6cd8eccb52faa74f58c36f72c8dd431851e70235
parent 534ed77fe85004ef95e7a9c16a7d46390a7e4dbd
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  8 Jan 2021 08:59:58 -0800

rsslink

Diffstat:
Mjb55pkgs/default.nix | 1+
Ajb55pkgs/pkgs/rsslink/default.nix | 18++++++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/jb55pkgs/default.nix b/jb55pkgs/default.nix @@ -19,6 +19,7 @@ in rec { samp = callPackage ./pkgs/samp { }; define = callPackage ./pkgs/define { }; + rsslink = callPackage ./pkgs/rsslink { }; ratio = fetch-srht { repo = "ratio"; diff --git a/jb55pkgs/pkgs/rsslink/default.nix b/jb55pkgs/pkgs/rsslink/default.nix @@ -0,0 +1,18 @@ +{ pkgs ? import <nixpkgs> {}, stdenv ? pkgs.stdenv, fetchurl ? pkgs.fetchurl, + bash ? pkgs.bash, pup ? pkgs.pup, writeScript ? pkgs.writeScript }: +stdenv.mkDerivation rec { + pname = "rsslink"; + version = "0.1"; + + src = writeScript "rsslink" '' + #!${bash}/bin/bash + ${pup}/bin/pup 'link[type="application/rss+xml"] attr{href}' + ''; + + phases = ["installPhase"]; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/rsslink + ''; +}