{ lib, stdenv, fetchzip }: stdenv.mkDerivation rec { pname = "ries"; version = "2018.04.11-1"; # upstream does not provide a stable link src = fetchzip { url = "https://salsa.debian.org/debian/ries/-/archive/debian/${version}/ries-debian-${version}.zip"; sha256 = "1h2wvd4k7f0l0i1vm9niz453xdbcs3nxccmri50qyrzzzc1b0842"; }; makeFlags = [ "PREFIX=$(out)" ]; meta = with lib; { homepage = "https://mrob.com/pub/ries/"; description = "Tool to produce a list of equations that approximately solve to a given number"; platforms = platforms.all; maintainers = with maintainers; [ symphorien ]; license = licenses.gpl3Plus; }; }