nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 922 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "ddate"; 11 version = "0.2.2"; 12 13 src = fetchFromGitHub { 14 owner = "bo0ts"; 15 repo = "ddate"; 16 tag = "v${finalAttrs.version}"; 17 sha256 = "1qchxnxvghbma6gp1g78wnjxsri0b72ha9axyk31cplssl7yn73f"; 18 }; 19 20 patches = [ 21 # cmake-4 compatibility 22 (fetchpatch { 23 name = "cmake-4.patch"; 24 url = "https://github.com/bo0ts/ddate/commit/0fbae46cb004c0acc48982b8e3533556d7b2edcc.patch?full_index=1"; 25 hash = "sha256-EbOmZYhFN8t8E/GW9ctcvhYfQauGZnX+5ZQmrEl6F18="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ cmake ]; 30 31 meta = { 32 homepage = "https://github.com/bo0ts/ddate"; 33 description = "Discordian version of the date program"; 34 license = lib.licenses.publicDomain; 35 maintainers = with lib.maintainers; [ kovirobi ]; 36 platforms = lib.platforms.all; 37 mainProgram = "ddate"; 38 }; 39})