default.nix (859B)
1 { lib, stdenv, fetchFromSourcehut, redo-apenwarr }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "dtree"; 5 version = "0.1.3"; 6 7 src = fetchFromSourcehut { 8 owner = "~strahinja"; 9 repo = "dtree"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-bvMJVPGYhNaWMAUyOlK4dci5/I/wYXIv2tXR+0Mz534="; 12 }; 13 14 nativeBuildInputs = [ redo-apenwarr ]; 15 16 buildPhase = '' 17 runHook preBuild 18 export FALLBACKVER=${finalAttrs.version} 19 redo all 20 runHook postBuild 21 ''; 22 23 installPhase = '' 24 runHook preInstall 25 PREFIX=$out redo install 26 runHook postInstall 27 ''; 28 29 meta = with lib; { 30 description = "Command line program to draw trees"; 31 homepage = "https://strahinja.srht.site/dtree"; 32 license = licenses.gpl3Plus; 33 maintainers = [ maintainers.sikmir ]; 34 platforms = platforms.linux; 35 skip.ci = stdenv.isDarwin; 36 }; 37 })