From f645808a1449a40d71e3cadd0b5b5bac164d5a7f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 2 Sep 2022 10:07:50 -0400 Subject: lots of updates, idk --- pkgs/base16.nix | 19 +++++++++++++++++++ pkgs/cmdtree.nix | 19 +++++++++++++++++++ pkgs/zebra.nix | 14 ++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 pkgs/base16.nix create mode 100644 pkgs/cmdtree.nix create mode 100644 pkgs/zebra.nix (limited to 'pkgs') 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 + ''; +} -- cgit v1.2.3