From 6626349a036ee7a1b0170ba665dd18fc1ad75228 Mon Sep 17 00:00:00 2001 From: Varun Patro Date: Tue, 6 Feb 2018 00:35:55 +0800 Subject: [PATCH 1/4] Create default.nix --- pkgs/os-specific/darwin/lsusb/default.nix | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/os-specific/darwin/lsusb/default.nix diff --git a/pkgs/os-specific/darwin/lsusb/default.nix b/pkgs/os-specific/darwin/lsusb/default.nix new file mode 100644 index 000000000000..5d05c1c90846 --- /dev/null +++ b/pkgs/os-specific/darwin/lsusb/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + version = "1.0"; + name = "lsusb-${version}"; + + src = fetchFromGitHub { + owner = "jlhonora"; + repo = "lsusb"; + rev = "8a6bd7084a55a58ade6584af5075c1db16afadd1"; + sha256 = "0p8pkcgvsx44dd56wgipa8pzi3298qk9h4rl9pwsw1939hjx6h0g"; + }; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share/man/man8 + install -m 0755 lsusb $out/bin + install -m 0444 man/lsusb.8 $out/share/man/man8 + ''; + + meta = { + homepage = https://github.com/jlhonora/lsusb; + description = "lsusb command for Mac OS X"; + platforms = stdenv.lib.platforms.darwin; + license = stdenv.lib.licenses.mit; + }; +} From db4e82561940703484716398607707522a03082c Mon Sep 17 00:00:00 2001 From: Varun Patro Date: Tue, 6 Feb 2018 00:41:35 +0800 Subject: [PATCH 2/4] Update darwin-packages.nix --- pkgs/top-level/darwin-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index e75c9338f8d4..1f8039010d7b 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -44,6 +44,8 @@ in }; libobjc = apple-source-releases.objc4; + + lsusb = callPackage ../os-specific/darwin/lsusb { }; opencflite = callPackage ../os-specific/darwin/opencflite { }; From e8f480fb6cc9fbb286c640ed9d386e68ffb2ef42 Mon Sep 17 00:00:00 2001 From: Varun Patro Date: Wed, 7 Feb 2018 13:59:34 +0800 Subject: [PATCH 3/4] Add 'varunpatro' as a maintainer. --- pkgs/os-specific/darwin/lsusb/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/darwin/lsusb/default.nix b/pkgs/os-specific/darwin/lsusb/default.nix index 5d05c1c90846..0b59ecb2299e 100644 --- a/pkgs/os-specific/darwin/lsusb/default.nix +++ b/pkgs/os-specific/darwin/lsusb/default.nix @@ -23,5 +23,6 @@ stdenv.mkDerivation rec { description = "lsusb command for Mac OS X"; platforms = stdenv.lib.platforms.darwin; license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.varunpatro ]; }; } From 768fe4f230608f34b92ff78ba014f257f0fbd96f Mon Sep 17 00:00:00 2001 From: Varun Patro Date: Wed, 7 Feb 2018 14:00:46 +0800 Subject: [PATCH 4/4] Add 'varunpatro' to maintainers list. --- lib/maintainers.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index d2c62ef9bb8f..249040247abd 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -717,6 +717,7 @@ vandenoever = "Jos van den Oever "; vanschelven = "Klaas van Schelven "; vanzef = "Ivan Solyankin "; + varunpatro = "Varun Patro "; vbgl = "Vincent Laporte "; vbmithr = "Vincent Bernardoff "; vcunat = "Vladimír Čunát ";