Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
868 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bchunk";
version = "1.2.2";
src = fetchFromGitHub {
owner = "hessu";
repo = "bchunk";
tag = "release/${finalAttrs.version}";
hash = "sha256-wFhBRLRwyC7FrGzadbssqLI9/UwfxBmFfOetaFJgsCo=";
};
makeFlags = lib.optionals stdenv.cc.isClang [
"CC=${stdenv.cc.targetPrefix}cc"
"LD=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
install -Dt $out/bin bchunk
install -Dt $out/share/man/man1 bchunk.1
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "http://he.fi/bchunk/";
description = "Program that converts CD images in BIN/CUE format into a set of ISO and CDR tracks";
platforms = lib.platforms.unix;
license = lib.licenses.gpl2Plus;
mainProgram = "bchunk";
};
})