commit 71620aa0d89a059fcb4d89aebe6cbd9988a2cf85
parent d832e4524b6400ee981a179b281ab0389add41b6
Author: Tomas Hlavaty <tom@logand.com>
Date: Mon, 23 Sep 2019 00:27:09 +0200
add nix build support files
Diffstat:
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix
@@ -0,0 +1,11 @@
+{stdenv, bash, curl, jq, fzf, ncurses, w3m}:
+stdenv.mkDerivation rec {
+ name = "osmq-${version}";
+ version = import ./VERSION;
+ src = ./osmq;
+ buildInputs = [bash curl jq fzf ncurses w3m];
+ installPhase = ''
+ mkdir -p "$out/bin"
+ cp osmq osmtile osmtile-download "$out/bin"
+ '';
+}
diff --git a/shell.nix b/shell.nix
@@ -0,0 +1 @@
+(import <nixpkgs> {}).callPackage ./. {}