pridecat: init at unstable-2020-06-19
Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
This commit is contained in:
parent
76b3e919b7
commit
3e3d28cc36
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
|
@ -361,9 +361,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