nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 61 lines 1.1 kB view raw
1{ 2 lib, 3 fetchzip, 4 stdenv, 5 callPackage, 6}: 7 8let 9 pname = "sweethome3d"; 10 version = "7.5"; 11 12 src = fetchzip { 13 url = "mirror://sourceforge/sweethome3d/SweetHome3D-${version}-src.zip"; 14 hash = "sha256-+rAhq5sFXC34AMYCcdAYZzrUa3LDy4S5Zid4DlEVvTQ="; 15 }; 16 17 patches = [ 18 ./build-xml.patch 19 ./config.patch 20 ]; 21 22 meta = { 23 homepage = "https://www.sweethome3d.com/index.jsp"; 24 description = "Design and visualize your future home"; 25 license = lib.licenses.gpl2Plus; 26 maintainers = with lib.maintainers; [ 27 edwtjo 28 DimitarNestorov 29 ]; 30 platforms = [ 31 "i686-linux" 32 "x86_64-darwin" 33 "x86_64-linux" 34 "aarch64-darwin" 35 ]; 36 mainProgram = "sweethome3d"; 37 }; 38in 39{ 40 application = 41 if stdenv.hostPlatform.isDarwin then 42 callPackage ./darwin.nix { 43 inherit 44 pname 45 version 46 src 47 meta 48 patches 49 ; 50 } 51 else 52 callPackage ./linux.nix { 53 inherit 54 pname 55 version 56 src 57 meta 58 patches 59 ; 60 }; 61}