ratio

cli rational number calculator
git clone git://jb55.com/ratio
Log | Files | Refs | README | LICENSE

commit 4eb820fb362c554baa73e244dae29aa62ec2d9d5
parent bacdb17b199bc06b143377d7cb2df505f430c4e9
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  9 Nov 2020 13:10:30 -0800

nix: build fixes

Diffstat:
A.envrc | 1+
M.gitignore | 1+
Adefault.nix | 20++++++++++++++++++++
Ashell.nix | 2++
4 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore @@ -2,3 +2,4 @@ *.tab.* /lex.yy.c /ratio +/result diff --git a/default.nix b/default.nix @@ -0,0 +1,20 @@ +{ stdenv, gmp, bison, flex }: + +stdenv.mkDerivation rec { + name = "ratio-${version}"; + version = "0.1"; + + src = ./.; + + makeFlags = "PREFIX=$(out)"; + + nativeBuildInputs = [ bison flex ]; + buildInputs = [ gmp ]; + + meta = with stdenv.lib; { + description = "ratio calculator"; + homepage = "https://github.com/jb55/ratio"; + maintainers = with maintainers; [ jb55 ]; + license = licenses.mit; + }; +} diff --git a/shell.nix b/shell.nix @@ -0,0 +1,2 @@ +{ pkgs ? import <nixpkgs> {} }: +pkgs.callPackage ./. {}