From a14a51f4172b3217aa8342e07168d84fc6fc85f0 Mon Sep 17 00:00:00 2001 From: DarkOnion0 Date: Thu, 21 Apr 2022 20:53:51 +0200 Subject: [PATCH] devspace: init at 5.18.4 devspace: add go ldflag devspace: add missing ldflags devspace: reformat code devspace: add comments --- .../tools/misc/devspace/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/misc/devspace/default.nix diff --git a/pkgs/development/tools/misc/devspace/default.nix b/pkgs/development/tools/misc/devspace/default.nix new file mode 100644 index 000000000000..df59686b2b97 --- /dev/null +++ b/pkgs/development/tools/misc/devspace/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildGoModule, + fetchFromGitHub +}: + +buildGoModule rec { + pname = "devspace"; + version = "5.18.4"; + + src = fetchFromGitHub { + owner = "loft-sh"; + repo = "devspace"; + rev = "v${version}"; + sha256 = "0s5117cgxgrxfki5drvg6d22dvrjffa03bi644zdl1p631r599r1"; + }; + + vendorSha256 = null; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + # Check are disable since they requiered a working K8S cluster + # TODO: add a nixosTest to be able to perform the package check + doCheck = false; + + meta = with lib; { + description = "DevSpace is an open-source developer tool for Kubernetes that lets you develop and deploy cloud-native software faster"; + homepage = "https://devspace.sh/"; + changelog = "https://github.com/loft-sh/devspace/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ darkonion0 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04f02c4685ab..7fea003721b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13641,6 +13641,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; + devspace = callPackage ../development/tools/misc/devspace { }; + maturin = callPackage ../development/tools/rust/maturin { inherit (darwin.apple_sdk.frameworks) Security; };