mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
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
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, ocamlPackages, ncurses, remind }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.4.6";
|
|
pname = "wyrd";
|
|
|
|
src = fetchurl {
|
|
url = "http://pessimization.com/software/wyrd/wyrd-${version}.tar.gz";
|
|
sha256 = "0zlrg602q781q8dij62lwdprpfliyy9j1rqfqcz8p2wgndpivddj";
|
|
};
|
|
|
|
NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1";
|
|
|
|
preConfigure = ''
|
|
substituteInPlace curses/curses.ml --replace 'pp gcc' "pp $CC"
|
|
'';
|
|
|
|
buildInputs = [ ocamlPackages.ocaml ncurses remind ocamlPackages.camlp4 ];
|
|
|
|
preferLocalBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "A text-based front-end to Remind";
|
|
longDescription = ''
|
|
Wyrd is a text-based front-end to Remind, a sophisticated
|
|
calendar and alarm program. Remind's power lies in its
|
|
programmability, and Wyrd does not hide this capability behind
|
|
flashy GUI dialogs. Rather, Wyrd is designed to make you more
|
|
efficient at editing your reminder files directly.
|
|
'';
|
|
homepage = "http://pessimization.com/software/wyrd/";
|
|
downloadPage = "http://pessimization.com/software/wyrd/";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.prikhi ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|