btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / dd / ddate / package.nix
blob012e00c8f972438294ede9bd210c8beeada836e7
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "ddate";
5   version = "0.2.2";
7   src = fetchFromGitHub {
8     owner = "bo0ts";
9     repo = pname;
10     rev = "refs/tags/v${version}";
11     sha256 = "1qchxnxvghbma6gp1g78wnjxsri0b72ha9axyk31cplssl7yn73f";
12   };
14   nativeBuildInputs = [ cmake ];
16   meta = with lib; {
17     homepage = "https://github.com/bo0ts/ddate";
18     description = "Discordian version of the date program";
19     license = licenses.publicDomain;
20     maintainers = with maintainers; [ kovirobi ];
21     platforms = platforms.all;
22     mainProgram = "ddate";
23   };