about summary refs log tree commit diff
path: root/pkgs/tools/archivers/undmg/default.nix
blob: 5cb7bf2c62fc2c90d187c552688c059f291af66c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
  };
}