4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
899 B
Nix
32 lines
899 B
Nix
{ lib, stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mencal-3.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://kyberdigi.cz/projects/mencal/files/${name}.tar.gz";
|
|
sha256 = "9328d0b2f3f57847e8753c5184531f4832be7123d1b6623afdff892074c03080";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp mencal $out/bin/
|
|
'';
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
meta = with lib; {
|
|
description = "Menstruation calendar";
|
|
longDescription = ''
|
|
Mencal is a simple variation of the well-known unix command cal.
|
|
The main difference is that you can have some periodically repeating
|
|
days highlighted in color. This can be used to track
|
|
menstruation (or other) cycles conveniently.
|
|
'';
|
|
homepage = "http://www.kyberdigi.cz/projects/mencal/english.html";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.mmahut ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|