Files
nixpkgs/pkgs/by-name/sp/spit/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

39 lines
781 B
Nix

{
stdenv,
lib,
installShellFiles,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spit";
version = "0.1";
src = fetchFromGitHub {
owner = "leahneukirchen";
repo = "spit";
tag = "v${finalAttrs.version}";
hash = "sha256-bvcx+bQyi5tWDwuqdOv2h6q1ZSEHO9bHV2lfvRhL7iw=";
};
nativeBuildInputs = [
installShellFiles
];
installPhase = ''
runHook preInstall
install -Dm755 spit -t "$out/bin"
installManPage spit.1
runHook postInstall
'';
meta = {
description = "Atomically create a file with content";
platforms = lib.platforms.linux;
license = lib.licenses.cc0;
homepage = "https://git.vuxu.org/spit/";
maintainers = [ lib.maintainers.sternenseemann ];
mainProgram = "spit";
};
})