nixpkgs/pkgs/development/tools/cppclean/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

32 lines
750 B
Nix

{ stdenv, fetchFromGitHub, python3Packages }:
with python3Packages;
buildPythonApplication rec {
pname = "cppclean-unstable";
version = "2018-05-12";
src = fetchFromGitHub {
owner = "myint";
repo = "cppclean";
rev = "e7da41eca5e1fd2bd1dddd6655e50128bb96dc28";
sha256 = "0pymh6r7y19bwcypfkmgwyixrx36pmz338jd83yrjflsbjlriqm4";
};
postUnpack = ''
patchShebangs .
'';
checkPhase = ''
./test.bash
'';
meta = with stdenv.lib; {
description = "Finds problems in C++ source that slow development of large code bases";
homepage = https://github.com/myint/cppclean;
license = licenses.asl20;
maintainers = with maintainers; [ nthorne ];
platforms = platforms.linux;
};
}