summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/base16.nix19
-rw-r--r--pkgs/cmdtree.nix19
-rw-r--r--pkgs/zebra.nix14
3 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/base16.nix b/pkgs/base16.nix
new file mode 100644
index 0000000..b0dc69a
--- /dev/null
+++ b/pkgs/base16.nix
@@ -0,0 +1,19 @@
+{ stdenv, lib, pkgs, }:
+
+stdenv.mkDerivation {
+ name = "base16-builder";
+ src = pkgs.fetchFromGitHub {
+ owner = "auduchinok";
+ repo = "base16-builder";
+ rev = "51e3ad4d447fc3f1f539d0bfe33c851728fb6b5f";
+ sha256 = "1qir689h38c6jr7fbbqbc3029544zgv41lrrqdcq26kcwxcwjrz1";
+ };
+ nativeBuildInputs = [pkgs.ruby];
+
+ # builds everything
+ buildPhase = "${pkgs.ruby}/bin/ruby base16";
+ installPhase = ''
+ mkdir -p $out
+ cp -r output/* $out
+ '';
+}
diff --git a/pkgs/cmdtree.nix b/pkgs/cmdtree.nix
new file mode 100644
index 0000000..a9a0fec
--- /dev/null
+++ b/pkgs/cmdtree.nix
@@ -0,0 +1,19 @@
+{stdenv, fetchgit, xorg }:
+
+stdenv.mkDerivation {
+ name = "cmdtree";
+ src = fetchgit {
+ url = "https://git.sr.ht/~jb55/cmdtree";
+ rev = "5606078e8fa02462f0208d9f9cad98c7673812e6";
+ sha256 = "sha256-/5f8uxcMmH7/W58if2DIl4R0Emt8jDWeoImOmQL6C7U=";
+ };
+ buildPhase = ''
+ cp ${../lib/cfg.def.h} ./cfg.def.h
+ make
+ '';
+ installPhase = ''
+ mkdir -p $out/bin
+ install -m755 ./cmdtree $out/bin
+ '';
+ buildInputs = [ xorg.libX11 xorg.libXft ];
+}
diff --git a/pkgs/zebra.nix b/pkgs/zebra.nix
new file mode 100644
index 0000000..41f3616
--- /dev/null
+++ b/pkgs/zebra.nix
@@ -0,0 +1,14 @@
+{ stdenv, fetchgit }:
+stdenv.mkDerivation {
+ name = "zebra";
+ src = fetchgit {
+ url = "https://github.com/jb55/zebra";
+ rev = "8fd29bc1c2e9b7b695d61e0f1329c819f57f74bb";
+ sha256 = "sha256-IuI91J1Ms9lZvihbdGv6zRJFKvLo4dgIG9QIC5L3V4U=";
+ };
+ buildPhase = "make";
+ installPhase = ''
+ mkdir -p $out/bin
+ install -m755 ./zebra $out/bin
+ '';
+}