Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 965 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5}: 6stdenvNoCC.mkDerivation (finalAttrs: { 7 pname = "softnet"; 8 version = "0.7.1"; 9 10 src = fetchurl { 11 url = "https://github.com/cirruslabs/softnet/releases/download/${finalAttrs.version}/softnet.tar.gz"; 12 sha256 = "1g274x524xc85hfzxi3vb4xp720bjgk740bp6hc92d1ikmp0b664"; 13 }; 14 sourceRoot = "."; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -D softnet $out/bin/softnet 20 install -Dm444 -t $out/share/softnet README.md LICENSE 21 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 description = "Software networking with isolation for Tart"; 27 homepage = "https://github.com/cirruslabs/softnet"; 28 license = licenses.agpl3Plus; 29 maintainers = with maintainers; [ emilytrau ]; 30 platforms = [ "aarch64-darwin" ]; 31 # Source build will be possible after darwin SDK 12.0 bump 32 # https://github.com/NixOS/nixpkgs/pull/229210 33 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 34 }; 35})