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>
32 lines
680 B
Nix
32 lines
680 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dumpnar";
|
|
version = "0-unstable-2023-01-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stephank";
|
|
repo = "dumpnar";
|
|
rev = "7b05e204264183532e8592ad132f74ddf05bc428";
|
|
hash = "sha256-762vgCn2d6QoXRBjpe/SyHKgyQJAV0sEl1prcyf/ClE=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp dumpnar $out/bin/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/stephank/dumpnar";
|
|
description = "Minimal tool to produce a Nix NAR archive";
|
|
license = lib.licenses.lgpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ lib.maintainers.stephank ];
|
|
mainProgram = "dumpnar";
|
|
};
|
|
}
|