Skip to content

Commit

Permalink
packages: inherit source from genpolicy
Browse files Browse the repository at this point in the history
This inherits the source of the kata-igvm package from the genpolicy package, as they are released together. Also, it seems that Microsoft has moved the tag upstream, so the hash has to be changed,too.
  • Loading branch information
msanft committed Jun 14, 2024
1 parent 66409ba commit 331d7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/by-name/microsoft/genpolicy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage rec {
owner = "microsoft";
repo = "kata-containers";
rev = "refs/tags/${version}";
hash = "sha256-W36RJFf0MVRIBV4ahpv6pqdAwgRYrlqmu4Y/8qiILS8=";
hash = "sha256-sFh2V7ylRDL6H50BcaHcgJAhrx4yvXzHNxtdQ9VYXdk=";
};

patches = [
Expand Down
10 changes: 1 addition & 9 deletions packages/by-name/microsoft/kata-igvm/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: AGPL-3.0-only

{ lib
, fetchFromGitHub
, stdenv
, microsoft
, igvm-tooling
Expand All @@ -11,21 +10,14 @@

stdenv.mkDerivation rec {
pname = "kata-igvm";
version = "3.2.0.azl1.genpolicy0";
inherit (microsoft.genpolicy) src version;

outputs = [ "out" "debug" ];

nativeBuildInputs = [
igvm-tooling
];

src = fetchFromGitHub {
owner = "microsoft";
repo = "kata-containers";
rev = "refs/tags/${version}";
hash = "sha256-sFh2V7ylRDL6H50BcaHcgJAhrx4yvXzHNxtdQ9VYXdk=";
};

sourceRoot = "${src.name}/tools/osbuilder/igvm-builder";

postPatch = ''
Expand Down

0 comments on commit 331d7ed

Please sign in to comment.