{ lib, stdenv, fetchurl }: stdenv.mkDerivation rec { pname = "ctree"; version = "1.0.4"; src = fetchurl { url = "https://github.com/gleich/ctree/releases/download/v${version}/ctree_${version}_linux_amd64.tar.gz"; hash = "sha256-2gD6ESzpz9sMJx1iRL438lP4QR/PVCZ5vMqfkpG3e0E="; }; # installPhase = '' # mkdir -p $out/bin # cp foo $out/bin # ''; meta = with lib; { homepage = "https://github.com/gleich/ctree"; maintainers = with maintainers; [ azikx ]; mainProgram = "ctree"; }; }