Skip to content

Commit

Permalink
xmloscopy: init at 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 25, 2018
1 parent 261a958 commit 72a4c54
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/tools/text/xml/xmloscopy/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5632,6 +5632,8 @@ with pkgs;

xmlroff = callPackage ../tools/typesetting/xmlroff { };

xmloscopy = callPackage ../tools/text/xml/xmloscopy { };

xmlstarlet = callPackage ../tools/text/xml/xmlstarlet { };

xmlto = callPackage ../tools/typesetting/xmlto {
Expand Down

0 comments on commit 72a4c54

Please sign in to comment.