depot/third_party/nixpkgs/pkgs/by-name/en/endlines/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
721 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "endlines";
version = "1.9.2";
src = fetchFromGitHub {
owner = "mdolidon";
repo = "endlines";
rev = finalAttrs.version;
hash = "sha256-M0IyY/WXR8qv9/qx5G0pG3EKqMoZAP3fJTZ6sSSMMyQ=";
};
postPatch = ''
substituteInPlace Makefile --replace "/usr/local" "$out"
'';
preInstall = ''
mkdir -p $out/bin
'';
meta = {
homepage = "https://github.com/mdolidon/endlines";
description = "Easy conversion between new-line conventions";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ zedseven ];
mainProgram = "endlines";
platforms = lib.platforms.unix;
};
})