can-utils: new package

CAN userspace utilities and tools (for use with Linux SocketCAN).

There is no real "homepage" for this project (the only thing I could
find was the gitorious page) and they haven't produced any proper
releases (source archives and/or git tags), even though git history goes
back to 2006 and things seem stable.
This commit is contained in:
Bjørn Forsman 2014-03-09 13:23:46 +01:00
parent 5729457d50
commit 8d18d58f91
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, fetchgit }:
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";
src = fetchgit {
url = "https://git.gitorious.org/linux-can/can-utils.git";
rev = "67a2bdcd336e6becfa5784742e18c88dbeddc973";
sha256 = "0pnnjl141wf3kbf256m6qz9mxz0144z36qqb43skialzcnlhga38";
};
preConfigure = ''makeFlagsArray+=(PREFIX="$out")'';
meta = with stdenv.lib; {
description = "CAN userspace utilities and tools (for use with Linux SocketCAN)";
homepage = "https://gitorious.org/linux-can/can-utils";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}

View file

@ -661,6 +661,8 @@ let
cabextract = callPackage ../tools/archivers/cabextract { };
can-utils = callPackage ../os-specific/linux/can-utils { };
ccid = callPackage ../tools/security/ccid { };
ccrypt = callPackage ../tools/security/ccrypt { };