mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
947 B
Nix
34 lines
947 B
Nix
{ lib, stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mencal";
|
|
version = "3.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://kyberdigi.cz/projects/mencal/files/mencal-${version}.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;
|
|
mainProgram = "mencal";
|
|
};
|
|
}
|