Files
nixpkgs/pkgs/by-name/df/dfc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
976 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
gettext,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dfc";
version = "3.1.1";
src = fetchFromGitHub {
owner = "rolinh";
repo = "dfc";
tag = "v${finalAttrs.version}";
hash = "sha256-k15q04dNWmHVeUabaCogkESQ+k63ZV7Xph2SMNpV/N8=";
};
# Fix for CMake v4
# ref. https://github.com/rolinh/dfc/pull/35
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_minimum_required(VERSION 2.8.4)" \
"cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [
cmake
gettext
];
meta = {
homepage = "https://github.com/rolinh/dfc";
changelog = "https://github.com/rolinh/dfc/releases/tag/${finalAttrs.src.tag}";
description = "Displays file system space usage using graphs and colors";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ qknight ];
platforms = lib.platforms.all;
mainProgram = "dfc";
};
})