2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, libtool }:
|
2019-04-07 14:46:58 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-05 07:46:28 +02:00
|
|
|
version = "3.2p4";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libow";
|
2019-04-07 14:46:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "owfs";
|
|
|
|
repo = "owfs";
|
|
|
|
rev = "v${version}";
|
2020-09-05 07:46:28 +02:00
|
|
|
sha256 = "0dln1ar7bxwhpi36sccmpwapy7iz4j097rbf02mgn42lw5vrcg3s";
|
2019-04-07 14:46:58 +02:00
|
|
|
};
|
|
|
|
|
2021-05-17 19:49:38 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Tries to use glibtoolize on Darwin, but it shouldn't for Nix.
|
|
|
|
sed -i -e 's/glibtoolize/libtoolize/g' bootstrap
|
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-owtcl"
|
|
|
|
"--disable-owphp"
|
|
|
|
"--disable-owpython"
|
|
|
|
"--disable-zero"
|
|
|
|
"--disable-owshell"
|
|
|
|
"--disable-owhttpd"
|
|
|
|
"--disable-owftpd"
|
|
|
|
"--disable-owserver"
|
|
|
|
"--disable-owperl"
|
|
|
|
"--disable-owtap"
|
|
|
|
"--disable-owmon"
|
|
|
|
"--disable-owexternal"
|
|
|
|
];
|
2019-04-07 14:46:58 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2019-04-07 14:46:58 +02:00
|
|
|
description = "1-Wire File System full library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://owfs.org/";
|
2019-04-07 14:46:58 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ disserman ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|