18 lines
341 B
Nix
18 lines
341 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
with pkgs;
|
|
let
|
|
gems = bundlerEnv {
|
|
name = "dump1090-influxdb-gems";
|
|
gemdir = ./.;
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "dump1090-influxdb";
|
|
buildInputs = [ gems.wrappedRuby ];
|
|
buildCommand = ''
|
|
install -D -m755 ${./main.rb} $out/bin/${name}
|
|
patchShebangs $out/bin/${name}
|
|
'';
|
|
}
|