vpcs: migrate to pkgs/by-name, format with nixfmt-rfc-style

This commit is contained in:
Anthony ROUSSEL 2024-09-17 21:01:23 +02:00
parent 076aa0be1b
commit ce6a11f471
2 changed files with 11 additions and 18 deletions

View File

@ -1,8 +1,9 @@
{ lib
, stdenv
, fetchFromGitHub
, testers
, vpcs
{
lib,
stdenv,
fetchFromGitHub,
testers,
vpcs,
}:
stdenv.mkDerivation (finalAttrs: {
@ -12,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "GNS3";
repo = "vpcs";
rev = "v${finalAttrs.version}";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-OKi4sC4fmKtkJkkpHZ6OfeIDaBafVrJXGXh1R6gLPFY=";
};
@ -26,22 +27,16 @@ stdenv.mkDerivation (finalAttrs: {
runHook postBuild
'';
installPhase = ''
runHook preInstall
postInstall = ''
install -D -m555 vpcs $out/bin/vpcs
install -D -m444 ../man/vpcs.1 $out/share/man/man1/vpcs.1
runHook postInstall
'';
enableParallelBuilding = true;
passthru = {
tests.version = testers.testVersion {
package = vpcs;
command = "vpcs -v";
};
passthru.tests.version = testers.testVersion {
package = vpcs;
command = "vpcs -v";
};
meta = with lib; {

View File

@ -33731,8 +33731,6 @@ with pkgs;
vivictpp = callPackage ../applications/video/vivictpp { };
vpcs = callPackage ../applications/virtualization/vpcs { };
primusLib = callPackage ../tools/X11/primus/lib.nix {
nvidia_x11 = linuxPackages.nvidia_x11.override { libsOnly = true; };
};