From 30084996f020064349928f6350094918a38b3524 Mon Sep 17 00:00:00 2001 From: emaryn Date: Sat, 19 Apr 2025 01:58:17 +0800 Subject: [PATCH] chsrc: 0.1.9 -> 0.2.1 Diff: https://github.com/RubyMetric/chsrc/compare/v0.1.9...v0.2.1 Changelog: https://github.com/RubyMetric/chsrc/releases/tag/v0.2.1 --- .../ch/chsrc/disable-static-compiling.patch | 14 -------------- pkgs/by-name/ch/chsrc/package.nix | 16 +++++++--------- 2 files changed, 7 insertions(+), 23 deletions(-) delete mode 100644 pkgs/by-name/ch/chsrc/disable-static-compiling.patch diff --git a/pkgs/by-name/ch/chsrc/disable-static-compiling.patch b/pkgs/by-name/ch/chsrc/disable-static-compiling.patch deleted file mode 100644 index 470deb32e9c9..000000000000 --- a/pkgs/by-name/ch/chsrc/disable-static-compiling.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/Makefile b/Makefile -index 99065da..2415738 100644 ---- a/Makefile -+++ b/Makefile -@@ -16,9 +16,6 @@ endif - ifeq ($(CC), clang) - CFLAGS += $(CLANG_FLAGS) - endif --ifeq ($(shell uname), Linux) -- CFLAGS += -static --endif - - Target = chsrc - diff --git a/pkgs/by-name/ch/chsrc/package.nix b/pkgs/by-name/ch/chsrc/package.nix index 571e6302d03a..d8c58669355f 100644 --- a/pkgs/by-name/ch/chsrc/package.nix +++ b/pkgs/by-name/ch/chsrc/package.nix @@ -1,33 +1,31 @@ { lib, - fetchFromGitHub, stdenv, + fetchFromGitHub, texinfo, }: stdenv.mkDerivation (finalAttrs: { pname = "chsrc"; - version = "0.1.9"; + version = "0.2.1"; src = fetchFromGitHub { owner = "RubyMetric"; repo = "chsrc"; - rev = "v${finalAttrs.version}"; - hash = "sha256-MwT6SuDisJ2ynxlOqAUA8WjhrTeUcyoAMArehnby8Yw="; + tag = "v${finalAttrs.version}"; + hash = "sha256-yZjza4BSgRCOwc719iNdG17WVuLPUBJjZb6Yz4FsTcA="; }; nativeBuildInputs = [ texinfo ]; - patches = [ - ./disable-static-compiling.patch - ]; - 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 -Dm 644 chsrc.info -t $out/share/info/ + install -Dm644 chsrc.info -t $out/share/info/ + runHook postInstall '';