summary refs log tree commit diff
path: root/pkgs/os-specific/linux/can-utils/default.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-03-09 13:23:46 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-03-09 14:19:39 +0100
commit8d18d58f913bb7664b4d7975b3ba371d3049bce3 (patch)
tree95078c7f3d0d0dfd24b86f337b6a65dc1a6c9723 /pkgs/os-specific/linux/can-utils/default.nix
parent5729457d50350fae4c2a0426e7e7574cc6a2b5d4 (diff)
downloadnixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar.gz
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar.bz2
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar.lz
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar.xz
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.tar.zst
nixpkgs-8d18d58f913bb7664b4d7975b3ba371d3049bce3.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/can-utils/default.nix')
-rw-r--r--pkgs/os-specific/linux/can-utils/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/can-utils/default.nix b/pkgs/os-specific/linux/can-utils/default.nix
new file mode 100644
index 00000000000..6a3fbd33d68
--- /dev/null
+++ b/pkgs/os-specific/linux/can-utils/default.nix
@@ -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 ];
+  };
+}