From 62a884e0c70e437ce4d914493fcaeb8358944fc0 Mon Sep 17 00:00:00 2001 From: Sivaram Balakrishnan Date: Mon, 18 Sep 2017 18:56:08 +0530 Subject: [PATCH] vcstool: init at 0.1.31 Adds vcstool application. Initial work to get ROS2 packages on Nix. --- pkgs/development/tools/vcstool/default.nix | 28 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/tools/vcstool/default.nix diff --git a/pkgs/development/tools/vcstool/default.nix b/pkgs/development/tools/vcstool/default.nix new file mode 100644 index 00000000000..fae0ca88124 --- /dev/null +++ b/pkgs/development/tools/vcstool/default.nix @@ -0,0 +1,28 @@ +{ stdenv, python3Packages +, git, bazaar, subversion }: + +with python3Packages; + +buildPythonApplication rec { + name = "${pname}-${version}"; + pname = "vcstool"; + version = "0.1.31"; + + src = fetchPypi { + inherit pname version; + sha256 = "0n2zkvy2km9ky9lljf1mq5nqyqi5qqzfy2a6sgkjg2grvsk7abxc"; + }; + + propagatedBuildInputs = [ pyyaml ]; + + makeWrapperArgs = ["--prefix" "PATH" ":" "${stdenv.lib.makeBinPath [ git bazaar subversion ]}"]; + + doCheck = false; # requires network + + meta = with stdenv.lib; { + description = "Provides a command line tool to invoke vcs commands on multiple repositories"; + homepage = https://github.com/dirk-thomas/vcstool; + license = licenses.asl20; + maintainer = with maintainers; [ sivteck ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4474b098c0..149026c8e9a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4744,6 +4744,8 @@ with pkgs; inherit (perlPackages) ShellCommand TestMost; }; + vcstool = callPackage ../development/tools/vcstool { }; + verilator = callPackage ../applications/science/electronics/verilator {}; verilog = callPackage ../applications/science/electronics/verilog {};