darwin: trash 0.9.0

This commit is contained in:
Jake Waksbaum
2017-11-16 07:47:47 -05:00
parent 9a190970ce
commit 232ff39115
3 changed files with 53 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, frameworks, perl } :
stdenv.mkDerivation rec {
version = "0.9.0";
name = "trash-${version}";
src = fetchFromGitHub {
owner = "ali-rantakari";
repo = "trash";
rev = "f68ad25a02e24cc58eb8ef9a493d6dc0122bcd8f";
sha256 = "0ylkf7jxfy1pj7i1s48w28kzqjdfd57m2pw0jycsgcj5bkzwll41";
};
buildInputs = with frameworks; [
Cocoa
AppKit
ScriptingBridge
perl
];
patches = [ ./trash.diff ];
buildPhase = ''make all docs'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
install -m 0755 trash $out/bin
install -m 0444 trash.1 $out/share/man/man1
'';
meta = {
homepage = https://github.com/ali-rantakari/trash;
description = "Small command-line program for OS X that moves files or
folders to the trash.";
platforms = stdenv.lib.platforms.darwin;
license = stdenv.lib.licenses.mit;
};
}