mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #161140 from Lunarequest/pridecat
This commit is contained in:
commit
3670683a07
23
pkgs/tools/misc/pridecat/default.nix
Normal file
23
pkgs/tools/misc/pridecat/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pridecat";
|
||||
version = "unstable-2020-06-19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lunasorcery";
|
||||
repo = "pridecat";
|
||||
rev = "92396b11459e7a4b5e8ff511e99d18d7a1589c96";
|
||||
sha256 = "sha256-PyGLbbsh9lFXhzB1Xn8VQ9zilivycGFEIc7i8KXOxj8=";
|
||||
};
|
||||
|
||||
# fixes the install path in the Makefile
|
||||
patches = [ ./fix_install.patch ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Like cat, but more colorful";
|
||||
homepage = "https://github.com/lunasorcery/pridecat";
|
||||
license = licenses.cc-by-nc-sa-40;
|
||||
maintainers = with maintainers; [ lunarequest ];
|
||||
};
|
||||
}
|
20
pkgs/tools/misc/pridecat/fix_install.patch
Normal file
20
pkgs/tools/misc/pridecat/fix_install.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 815c27e..1556807 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,4 +1,5 @@
|
||||
CXX ?= clang
|
||||
+out ?= /usr/local
|
||||
|
||||
all: pridecat
|
||||
|
||||
@@ -6,7 +7,8 @@ pridecat: main.cpp
|
||||
$(CXX) main.cpp -o pridecat -std=c++11 -lstdc++ -Wall -Wextra -O3
|
||||
|
||||
install: pridecat
|
||||
- cp pridecat /usr/local/bin/pridecat
|
||||
+ mkdir -p ${out}/bin
|
||||
+ cp pridecat ${out}/bin/pridecat
|
||||
|
||||
uninstall:
|
||||
rm -f /usr/local/bin/pridecat
|
@ -368,9 +368,11 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
pridecat = callPackage ../tools/misc/pridecat { };
|
||||
|
||||
proto-contrib = callPackage ../development/tools/proto-contrib { };
|
||||
|
||||
protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc {};
|
||||
protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc { };
|
||||
|
||||
protoc-gen-go = callPackage ../development/tools/protoc-gen-go { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user