From 1176973ab404a47b5355fc10aa9559df90ffb3ef Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 25 Oct 2016 19:53:04 +0200 Subject: [PATCH] loc: init at 0.3.0 --- pkgs/development/misc/loc/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/misc/loc/default.nix diff --git a/pkgs/development/misc/loc/default.nix b/pkgs/development/misc/loc/default.nix new file mode 100644 index 000000000000..1dd6d4c01661 --- /dev/null +++ b/pkgs/development/misc/loc/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }: + +with rustPlatform; + +buildRustPackage rec { + version = "0.3.0"; + name = "loc-${version}"; + + src = fetchFromGitHub { + owner = "caga"; + repo = "loc"; + rev = "v0.3.0"; + sha256 = "1ckrf77s1glrqi0gvrv9wqmip4i97dk0arn0iz87jg4q2wfss85k"; + }; + + depsSha256 = "1ckrf77s1glrqi0gvrv9wqmip4i97dk0arn0iz87jg4q2wfss85k"; + + meta = { + homepage = "http://github.com/cgag/loc"; + description = "Count lines of code quickly"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.matthiasbeyer ]; + platforms = with stdenv.lib.platforms; linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4402d1697638..ee020a41a93a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2337,6 +2337,8 @@ in lnav = callPackage ../tools/misc/lnav { }; + loc = callPackage ../development/misc/loc { }; + lockfileProgs = callPackage ../tools/misc/lockfile-progs { }; logstash = callPackage ../tools/misc/logstash { };