2015-07-12 19:36:25 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-03-09 13:23:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "can-utils-${version}";
|
|
|
|
# There are no releases (source archives or git tags), so use the date of the
|
|
|
|
# latest commit in git master as version number.
|
|
|
|
version = "20140227";
|
|
|
|
|
2015-07-12 19:36:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-can";
|
|
|
|
repo = "can-utils";
|
2014-03-09 13:23:46 +01:00
|
|
|
rev = "67a2bdcd336e6becfa5784742e18c88dbeddc973";
|
2015-07-12 19:36:25 +02:00
|
|
|
sha256 = "1v73b0nk1kb3kp5nbxp4xiygny6nfjgjnm7zgzrjgryvdrnws32z";
|
2014-03-09 13:23:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''makeFlagsArray+=(PREFIX="$out")'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/linux-can/can-utils;
|
2014-03-09 13:23:46 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|