mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
spit: init at 0.1
This commit is contained in:
38
pkgs/by-name/sp/spit/package.nix
Normal file
38
pkgs/by-name/sp/spit/package.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
installShellFiles,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spit";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "leahneukirchen";
|
||||
repo = "spit";
|
||||
tag = "v${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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user