dynamips: refactor

+9 -3
+9 -3
pkgs/applications/emulators/dynamips/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, libelf, libpcap }: 2 3 stdenv.mkDerivation rec { 4 pname = "dynamips"; ··· 8 owner = "GNS3"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "0pvdqs6kjz0x0wqb5f1k3r25dg82wssm7wz4psm0m6bxsvf5l0i5"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; ··· 17 cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ]; 18 19 meta = with lib; { 20 description = "A Cisco router emulator"; 21 longDescription = '' 22 Dynamips is an emulator computer program that was written to emulate Cisco 23 routers. 24 ''; 25 - inherit (src.meta) homepage; 26 license = licenses.gpl2Plus; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ primeos ];
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , libelf 6 + , libpcap 7 + }: 8 9 stdenv.mkDerivation rec { 10 pname = "dynamips"; ··· 14 owner = "GNS3"; 15 repo = pname; 16 rev = "v${version}"; 17 + hash = "sha256-JQJa3NZ9mQqqvuTzU7XmAr1WRB4zuLIwBx18OY3GbV8="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; ··· 23 cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ]; 24 25 meta = with lib; { 26 + inherit (src.meta) homepage; 27 description = "A Cisco router emulator"; 28 longDescription = '' 29 Dynamips is an emulator computer program that was written to emulate Cisco 30 routers. 31 ''; 32 license = licenses.gpl2Plus; 33 platforms = platforms.linux; 34 maintainers = with maintainers; [ primeos ];