evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / massren / package.nix
blob0c33de89eecd1cc949ffc4dbff1f4f9bb21a161b
1 { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
3 buildGoModule rec {
4   pname = "massren";
5   version = "1.5.6";
7   src = fetchFromGitHub {
8     owner = "laurent22";
9     repo = "massren";
10     rev = "v${version}";
11     hash = "sha256-17y+vmspvZKKRRaEwzP3Zya4r/z+2aSGG6oNZiA8D64=";
12   };
14   vendorHash = null;
16   patches = [
17     # Add Go Modules support
18     (fetchpatch {
19       url = "https://github.com/laurent22/massren/commit/83df215b6e112d1ec375b08d8c44dadc5107155d.patch";
20       hash = "sha256-FMTmUrv6zGq11vexUirAuK3H6r78RtoipqyWoh+pzrs=";
21     })
22   ];
24   ldflags = [ "-s" "-w" ];
26   checkFlags =
27     let
28       skippedTests = [
29         # Possible error about github.com/mattn/go-sqlite3
30         "Test_guessEditorCommand"
31         "Test_processFileActions"
32       ];
33     in
34     [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
36   meta = with lib; {
37     description = "Easily rename multiple files using your text editor";
38     license = licenses.mit;
39     homepage = "https://github.com/laurent22/massren";
40     maintainers = [ ];
41     mainProgram = "massren";
42   };