base16-builder: init

remove base16 as it was abandoned and one of its sucessors is
base17-builder.
This commit is contained in:
Rok Garbas 2017-09-29 19:49:59 +02:00
parent ccf2c06e38
commit 80dbfe4afb
6 changed files with 1473 additions and 63 deletions

View File

@ -0,0 +1,16 @@
{ stdenv, pkgs }:
let
# node-packages*.nix generated via:
#
# % node2nix --input node-packages.json \
# --output node-packages-generated.nix \
# --composition node-packages.nix \
# --node-env ./../../development/node-packages/node-env.nix \
# --pkg-name nodejs-6_x
#
nodePackages = import ./node-packages.nix {
inherit pkgs;
inherit (stdenv) system;
};
in nodePackages.base16-builder

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
[
"base16-builder"
]

View File

@ -0,0 +1,16 @@
# This file has been generated by node2nix 1.3.0. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-6_x"}:
let
nodeEnv = import ./../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit nodejs;
};
in
import ./node-packages-generated.nix {
inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv;
}

View File

@ -1,62 +0,0 @@
{ stdenv, fetchgit, fetchurl, ruby, which, coreutils }:
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 = "1zicwam16nsdg74rnza65jwwf4mlpkgv35p9gkr8ydy60l7agzwy";
};
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";
})
(fetchurl {
url = "https://github.com/chriskempson/base16-builder/pull/346.patch";
sha256 = "145wblgqz28wq9lvgh1i705y97zblc6d488j7xm230ywy81abbwi";
})
];
buildInputs = [ ruby which ];
buildPhase = ''
sed -i -e "s|\/bin\/false|${coreutils}/bin/false|" templates/shell/dark.sh.erb
sed -i -e "s|\/bin\/false|${coreutils}/bin/false|" templates/shell/light.sh.erb
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 ];
platforms = with platforms; unix;
};
}

View File

@ -674,7 +674,7 @@ with pkgs;
backup = callPackage ../tools/backup/backup { }; backup = callPackage ../tools/backup/backup { };
base16 = callPackage ../misc/base16 { }; base16-builder = callPackage ../misc/base16-builder { };
basex = callPackage ../tools/text/xml/basex { }; basex = callPackage ../tools/text/xml/basex { };