mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
bc0d605cf1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
35 lines
848 B
Nix
35 lines
848 B
Nix
{ lib, stdenv, fetchFromGitHub, perl, AppKit, Cocoa, ScriptingBridge }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.2";
|
|
pname = "trash";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ali-rantakari";
|
|
repo = "trash";
|
|
rev = "v${version}";
|
|
sha256 = "1d3rc03vgz32faj7qi18iiggxvxlqrj9lsk5jkpa9r1mcs5d89my";
|
|
};
|
|
|
|
buildInputs = [ perl Cocoa AppKit ScriptingBridge ];
|
|
|
|
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 = lib.platforms.darwin;
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|