1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00

undmg: init at 1.0.2

This commit is contained in:
Marc Scholten 2016-03-03 11:39:54 +01:00
parent c2a2c2ecd4
commit 8b5b57fb96
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, zlib, bzip2 }:
stdenv.mkDerivation rec {
version = "1.0.2";
name = "undmg-${version}";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "undmg";
rev = "refs/tags/v${version}";
sha256 = "0w9vwvj9zbpsjkg251bwv9y10wjyjmh54q2piklz74w64rlbqblr";
name = "undmg-${version}";
};
buildInputs = [ zlib bzip2 ];
setupHook = ./setup-hook.sh;
installFlags = "PREFIX=\${out}";
meta = {
homepage = https://github.com/matthewbauer/undmg;
description = "Extract a DMG file";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.all;
};
}

View file

@ -0,0 +1,5 @@
unpackCmdHooks+=(_tryUnpackDmg)
_tryUnpackDmg() {
if ! [[ "$curSrc" =~ \.dmg$ ]]; then return 1; fi
undmg < "$curSrc"
}

View file

@ -3728,6 +3728,8 @@ let
unzipNLS = lowPrio (unzip.override { enableNLS = true; }); unzipNLS = lowPrio (unzip.override { enableNLS = true; });
undmg = callPackage ../tools/archivers/undmg { };
uptimed = callPackage ../tools/system/uptimed { }; uptimed = callPackage ../tools/system/uptimed { };
urjtag = callPackage ../tools/misc/urjtag { urjtag = callPackage ../tools/misc/urjtag {