diff options
author | Ben Sima <ben@bsima.me> | 2022-09-02 10:07:50 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-09-02 10:07:50 -0400 |
commit | f645808a1449a40d71e3cadd0b5b5bac164d5a7f (patch) | |
tree | bb1f9477c840ed41fc90e7a86cfb735d543d2ec0 /pkgs | |
parent | a55d3efcaa9b8d2a30b40606dae3e06b37665369 (diff) |
lots of updates, idk
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/base16.nix | 19 | ||||
-rw-r--r-- | pkgs/cmdtree.nix | 19 | ||||
-rw-r--r-- | pkgs/zebra.nix | 14 |
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 + ''; +} |