From bfe8d8ac84f4a562a10aa961b3a3c59327384c13 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sun, 15 May 2016 03:58:28 +0200 Subject: [PATCH] base16: init at revision 9b24598c0 (no release) also applied few patches from not merged PRs --- pkgs/misc/base16/default.nix | 55 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 57 insertions(+) create mode 100644 pkgs/misc/base16/default.nix diff --git a/pkgs/misc/base16/default.nix b/pkgs/misc/base16/default.nix new file mode 100644 index 000000000000..a864dd47cab5 --- /dev/null +++ b/pkgs/misc/base16/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchgit, fetchurl, ruby, which }: + +stdenv.mkDerivation rec { + rev = "9b24598c08a27780f87c318e6145c1468b9880ba"; + name = "base16-2015-09-29_rev${builtins.substring 0 6 rev}"; + + src = fetchgit { + inherit rev; + url = "https://github.com/chriskempson/base16-builder"; + sha256 = "05wyf0qz5z3n3g8lz2rd1b6gv6v7qjaazwjm0w4ib4anj4v026sd"; + }; + + patches = [ + (fetchurl { + url = "https://github.com/chriskempson/base16-builder/pull/341.patch"; + sha256 = "1r7i22qr5maxnp8a84mwin0a48klb8fym2hkw15ichkqfn3cdqdn"; + }) + (fetchurl { + url = "https://github.com/chriskempson/base16-builder/pull/331.patch"; + sha256 = "0hbyc9i62ihms00rk1ap0apjw8zf5axrvsk63vdy1hfyd9n5y2yf"; + }) + (fetchurl { + url = "https://github.com/chriskempson/base16-builder/pull/330.patch"; + sha256 = "1gfsbrxzdk3pz9dmyxismc3mzgm0cz8pkmf52iz4s9gq7vkv1d14"; + }) + (fetchurl { + url = "https://github.com/chriskempson/base16-builder/pull/325.patch"; + sha256 = "0n10yzm0n4g77z29s5f69261qy6x6kkjc6nj6ccdjlncz0bk6d8k"; + }) + (fetchurl { + url = "https://github.com/chriskempson/base16-builder/pull/318.patch"; + sha256 = "0c044bimdbiw2n2nzzivzrvxhwk6i93lc4ydah56xhs6pp1x0i60"; + }) + ]; + + buildInputs = [ ruby which ]; + + buildPhase = '' + patchShebangs base16 + ./base16 + ''; + + installPhase = '' + mkdir -p $out + cp output/* $out -R + ''; + + meta = with stdenv.lib; { + description = "Base16 provides carefully chosen syntax highlighting and a default set of sixteen colors suitable for a wide range of applications. Base16 is both a color scheme and a template."; + homepage = "https://github.com/chriskempson/base16"; + license = licenses.mit; + maintainers = with maintainers; [ garbas ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e13fbac351bd..4f1c5b19dbcc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -554,6 +554,8 @@ in backup = callPackage ../tools/backup/backup { }; + base16 = callPackage ../misc/base16 { }; + basex = callPackage ../tools/text/xml/basex { }; babeld = callPackage ../tools/networking/babeld { };