Skip to content

Instantly share code, notes, and snippets.

@juranki
Created January 27, 2015 14:39
Show Gist options
  • Save juranki/51329d3e06da1e7e22e8 to your computer and use it in GitHub Desktop.
Save juranki/51329d3e06da1e7e22e8 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "mosquitto-1.3.5";
buildInputs = [ python tcp_wrappers openssl c-ares ];
configurePhase = ''
substituteInPlace config.mk --replace "prefix=/usr/local" "prefix="
echo "DESTDIR=$out" >> config.mk
'';
src = fetchurl {
url = "http://mosquitto.org/files/source/mosquitto-1.3.5.tar.gz";
sha256 = "16eb3dbef183827665feee9288362c7352cd016ba04ca0402a0ccf857d1c2ab2";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment