Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
978 B
Nix
45 lines
978 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
texinfo,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chsrc";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RubyMetric";
|
|
repo = "chsrc";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-W59c78U7fZ4nlSm4Yn7sySYdMqS848aGAzqHh+BVEpA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ texinfo ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 chsrc $out/bin/chsrc
|
|
install -Dm644 doc/chsrc.1 -t $out/share/man/man1/
|
|
makeinfo doc/chsrc.texi --output=chsrc.info
|
|
install -Dm644 chsrc.info -t $out/share/info/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Change Source everywhere for every software";
|
|
homepage = "https://chsrc.run/";
|
|
changelog = "https://github.com/RubyMetric/chsrc/releases/tag/v${finalAttrs.version}";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
mit
|
|
];
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "chsrc";
|
|
};
|
|
})
|