at v206 25 lines 792 B view raw
1{ stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 name = "can-utils-${version}"; 5 # There are no releases (source archives or git tags), so use the date of the 6 # latest commit in git master as version number. 7 version = "20140227"; 8 9 src = fetchFromGitHub { 10 owner = "linux-can"; 11 repo = "can-utils"; 12 rev = "67a2bdcd336e6becfa5784742e18c88dbeddc973"; 13 sha256 = "1v73b0nk1kb3kp5nbxp4xiygny6nfjgjnm7zgzrjgryvdrnws32z"; 14 }; 15 16 preConfigure = ''makeFlagsArray+=(PREFIX="$out")''; 17 18 meta = with stdenv.lib; { 19 description = "CAN userspace utilities and tools (for use with Linux SocketCAN)"; 20 homepage = "https://github.com/linux-can/can-utils"; 21 license = licenses.gpl2Plus; 22 platforms = platforms.linux; 23 maintainers = [ maintainers.bjornfor ]; 24 }; 25}