···11-{
22- fetchurl,
33- lib,
44- stdenv,
55- perl,
66- makeWrapper,
77-}:
88-99-stdenv.mkDerivation rec {
1010- pname = "sloccount";
1111- version = "2.26";
1212-1313- src = fetchurl {
1414- url = "https://www.dwheeler.com/${pname}/${pname}-${version}.tar.gz";
1515- sha256 = "0ayiwfjdh1946asah861ah9269s5xkc8p5fv1wnxs9znyaxs4zzs";
1616- };
1717-1818- nativeBuildInputs = [ makeWrapper ];
1919- buildInputs = [ perl ];
2020-2121- # Make sure the Flex-generated files are newer than the `.l' files, so that
2222- # Flex isn't needed to recompile them.
2323- patchPhase = ''
2424- for file in *
2525- do
2626- if grep -q /usr/bin/perl "$file"
2727- then
2828- echo "patching \`$file'..."
2929- substituteInPlace "$file" --replace \
3030- "/usr/bin/perl" "${perl}/bin/perl"
3131- fi
3232- done
3333-3434- for file in *.l
3535- do
3636- touch "$(echo $file | sed -es'/\.l$/.c/g')"
3737- done
3838- '';
3939-4040- makeFlags = [
4141- "PREFIX=$(out)"
4242- "CC=${stdenv.cc.targetPrefix}cc"
4343- ];
4444-4545- doCheck = true;
4646- checkPhase = ''HOME="$TMPDIR" PATH="$PWD:$PATH" make test'';
4747-4848- preInstall = ''
4949- mkdir -p "$out/bin"
5050- mkdir -p "$out/share/man/man1"
5151- mkdir -p "$out/share/doc"
5252- '';
5353-5454- postInstall = ''
5555- for w in "$out/bin"/*; do
5656- isScript "$w" || continue
5757- wrapProgram "$w" --prefix PATH : "$out/bin"
5858- done
5959- '';
6060-6161- meta = {
6262- description = "Set of tools for counting physical Source Lines of Code (SLOC)";
6363-6464- longDescription = ''
6565- This is the home page of "SLOCCount", a set of tools for
6666- counting physical Source Lines of Code (SLOC) in a large number
6767- of languages of a potentially large set of programs. This suite
6868- of tools was used in my papers More than a Gigabuck: Estimating
6969- GNU/Linux's Size and Estimating Linux's Size to measure the SLOC
7070- of entire GNU/Linux distributions, and my essay Linux Kernel
7171- 2.6: It's Worth More! Others have measured Debian GNU/Linux and
7272- the Perl CPAN library using this tool suite.
7373- '';
7474-7575- license = lib.licenses.gpl2Plus;
7676-7777- homepage = "https://www.dwheeler.com/sloccount/";
7878-7979- maintainers = [ ];
8080- platforms = lib.platforms.all;
8181- };
8282-}
+1
pkgs/top-level/aliases.nix
···16981698 skypeforlinux = throw "Skype has been shut down in May 2025"; # Added 2025-05-05
16991699 slack-dark = throw "'slack-dark' has been renamed to/replaced by 'slack'"; # Converted to throw 2024-10-17
17001700 slimerjs = throw "slimerjs does not work with any version of Firefox newer than 59; upstream ended the project in 2021. <https://slimerjs.org/faq.html#end-of-development>"; # added 2025-01-06
17011701+ sloccount = throw "'sloccount' has been removed because it is unmaintained. Consider migrating to 'loccount'"; # added 2025-05-17
17011702 slurm-llnl = slurm; # renamed July 2017
17021703 sm64ex-coop = throw "'sm64ex-coop' was removed as it was archived upstream. Consider migrating to 'sm64coopdx'"; # added 2024-11-23
17031704 smartgithg = smartgit; # renamed March 2025