diff options
author | Graham Christensen <graham@grahamc.com> | 2018-03-24 21:46:59 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-03-24 22:42:39 -0400 |
commit | 72a4c54c71b1bebd974107fb792ad01e8ec9ce8e (patch) | |
tree | a532630835ba2866a94253dba21ff25288fde9da /pkgs/tools | |
parent | 261a958170f1866b29ebb3429b7d271de23c87d0 (diff) |
xmloscopy: init at 0.1.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/xml/xmloscopy/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/xmloscopy/default.nix b/pkgs/tools/text/xml/xmloscopy/default.nix new file mode 100644 index 0000000000000..8c25e677c8b9c --- /dev/null +++ b/pkgs/tools/text/xml/xmloscopy/default.nix @@ -0,0 +1,52 @@ +{ stdenv, lib, makeWrapper, dev_only_shellcheck ? null, +fetchFromGitHub, + +fzf, coreutils, libxml2, libxslt, jing, findutils, gnugrep, gnused, +docbook5 +}: +stdenv.mkDerivation rec { + name = "xmloscopy-${version}"; + version = "v0.1.1"; + + buildInputs = [ + makeWrapper + dev_only_shellcheck + ]; + + spath = lib.makeBinPath [ + fzf + coreutils + libxml2 + libxslt + jing + findutils + gnugrep + gnused + ]; + + src = fetchFromGitHub { + owner = "grahamc"; + repo = "xmloscopy"; + rev = version; + sha256 = "01i9hr0hh87p4qxfqx4vhml2mpdqggq2326vy7nymm2d4xpa5i1i"; + }; + + installPhase = '' + sed -i "s/hard to say/${version}/" ./xmloscopy + type -P shellcheck && shellcheck ./xmloscopy + chmod +x ./xmloscopy + patchShebangs ./xmloscopy + mkdir -p $out/bin + cp ./xmloscopy $out/bin/ + wrapProgram $out/bin/xmloscopy \ + --set RNG "${docbook5}/xml/rng/docbook/docbook.rng" \ + --set PATH "${spath}" + ''; + + meta = { + description = "wtf is my docbook broken?"; + homepage = https://github.com/grahamc/xmloscopy; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.all; + }; +} |