···11+{ stdenv, lib, fetchFromGitHub, go }:22+33+stdenv.mkDerivation rec {44+ pname = "AutomaticComponentToolkit";55+ version = "1.6.0";66+77+ src = fetchFromGitHub {88+ owner = "Autodesk";99+ repo = pname;1010+ rev = "v${version}";1111+ sha256 = "1r0sbw82cf9dbcj3vgnbd4sc1lklzvijic2z5wgkvs21azcm0yzh";1212+ };1313+1414+ nativeBuildInputs = [ go ];1515+1616+ buildPhase = ''1717+ cd Source1818+ export HOME=/tmp1919+ go build -o act *.go2020+ '';2121+2222+ installPhase = ''2323+ install -Dm0755 act $out/bin/act2424+ '';2525+2626+ meta = with lib; {2727+ description = "Toolkit to automatically generate software components: abstract API, implementation stubs and language bindings";2828+ homepage = "https://github.com/Autodesk/AutomaticComponentToolkit";2929+ license = licenses.bsd2;3030+ maintainers = with maintainers; [ gebner ];3131+ platforms = platforms.all;3232+ };3333+}
+53
pkgs/os-specific/darwin/macfuse/default.nix
···11+{ lib, stdenv, fetchurl, cpio, xar, undmg, libtapi }:22+33+stdenv.mkDerivation rec {44+ pname = "macfuse-stubs";55+ version = "4.1.0";66+77+ src = fetchurl {88+ url = "https://github.com/osxfuse/osxfuse/releases/download/macfuse-${version}/macfuse-${version}.dmg";99+ sha256 = "118hg64w5wb95lbxw6w1hbqxrx3plcbxfjhvxx86q0zx0saa9diw";1010+ };1111+1212+ nativeBuildInputs = [ cpio xar undmg libtapi ];1313+1414+ postUnpack = ''1515+ xar -xf 'Install macFUSE.pkg'1616+ cd Core.pkg1717+ gunzip -dc Payload | cpio -i1818+ '';1919+2020+ sourceRoot = ".";2121+2222+ buildPhase = ''2323+ pushd usr/local/lib2424+ for f in *.dylib; do2525+ tapi stubify --filetype=tbd-v2 "$f" -o "''${f%%.dylib}.tbd"2626+ done2727+ sed -i "s|^prefix=.*|prefix=$out|" pkgconfig/fuse.pc2828+ popd2929+ '';3030+3131+ # NOTE: Keep in mind that different parts of macFUSE are distributed under a3232+ # different license3333+ installPhase = ''3434+ mkdir -p $out/include $out/lib/pkgconfig3535+ cp usr/local/lib/*.tbd $out/lib3636+ cp usr/local/lib/pkgconfig/*.pc $out/lib/pkgconfig3737+ cp -R usr/local/include/* $out/include3838+ '';3939+4040+ meta = with lib; {4141+ homepage = "https://osxfuse.github.io";4242+ description = "Build time stubs for FUSE on macOS";4343+ platforms = platforms.darwin;4444+ maintainers = with maintainers; [ midchildan ];4545+4646+ # macFUSE as a whole includes code with restrictions on commercial4747+ # redistribution. However, the build artifacts that we actually touch for4848+ # this derivation are distributed under a free license.4949+ license = with licenses; [5050+ lgpl2Plus # libfuse5151+ ];5252+ };5353+}