Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 mkFranzDerivation, 4 fetchurl, 5 xorg, 6 stdenv, 7}: 8 9let 10 arch = 11 { 12 x86_64-linux = "amd64"; 13 aarch64-linux = "arm64"; 14 } 15 ."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 16 hash = 17 { 18 amd64-linux_hash = "sha256-84W40++U+5/kTI84vGEqAVb93TCgFPduBkhMQG0yDRo="; 19 arm64-linux_hash = "sha256-lOQW559aXXBIDuindVj8YBB8pzNAJPoTSJ70y1YnZQ4="; 20 } 21 ."${arch}-linux_hash"; 22in 23mkFranzDerivation rec { 24 pname = "ferdium"; 25 name = "Ferdium"; 26 version = "7.1.0"; 27 src = fetchurl { 28 url = "https://github.com/ferdium/ferdium-app/releases/download/v${version}/Ferdium-linux-${version}-${arch}.deb"; 29 inherit hash; 30 }; 31 32 extraBuildInputs = [ xorg.libxshmfence ]; 33 34 passthru = { 35 updateScript = ./update.sh; 36 }; 37 38 meta = with lib; { 39 description = "All your services in one place built by the community"; 40 homepage = "https://ferdium.org/"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ magnouvean ]; 43 platforms = [ 44 "x86_64-linux" 45 "aarch64-linux" 46 ]; 47 hydraPlatforms = [ ]; 48 }; 49}