~jb55/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1 2

[PATCH cmdtree] Add a simple default.nix

Details
Message ID
<20190226173840.13851-1-ben@bsima.me>
Sender timestamp
1551202720
DKIM signature
missing
Download raw message
Patch: +15 -0
---

Tested with NixOS 18.09 and gnome3 and it seemed to work.

 .gitignore  |  1 +
 default.nix | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 default.nix

diff --git a/.gitignore b/.gitignore
index 7630ec9..4a6552f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/cfg.h
/TAGS
/archive/
/result
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..8dd505b
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,14 @@
{ nixpkgs ? import <nixpkgs> {} }:

with nixpkgs;

stdenv.mkDerivation {
  name = "cmdtree";
  src = ./.;
  buildPhase = "make";
  installPhase = ''
    mkdir -p $out/bin
    cp ./cmdtree $out/bin
  '';
  buildInputs = [ pkgs.xorg.libX11 pkgs.xorg.libXft ];
}
--
2.19.2
Details
Message ID
<87bm2yh29b.fsf@jb55.com>
In-Reply-To
<20190226173840.13851-1-ben@bsima.me> (view parent)
Sender timestamp
1551203152
DKIM signature
missing
Download raw message
Thx Ben!

pushed

To git.sr.ht:~jb55/cmdtree
   775380b..5606078  master -> master