Skip to content

Commit

Permalink
build with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Aug 6, 2018
1 parent b228260 commit 5cfcde7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/result
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
language: nix
script: nix-build
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# `h` - faster shell navigation of projects

[![Built with Nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
[![Build Status](https://travis-ci.org/zimbatm/h.svg?branch=master)](https://travis-ci.org/zimbatm/h)

`h` is a small shell utility that I use every day to jump between projects quickly. It is complimentary to the amazing j
([autojump](https://github.com/joelthelion/autojump)) project and both help me
Expand Down
16 changes: 16 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;

stdenv.mkDerivation {
name = "h";

src = ./.;

buildInputs = [ ruby ];

installPhase = ''
mkdir -p $out/bin
cp h $out/bin
cp up $out/bin
'';
}

0 comments on commit 5cfcde7

Please sign in to comment.