mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #289682 from elpdt852/feature/add-nix-snapshotter
nix-snapshotter: init at 0.2.0
This commit is contained in:
commit
53c8f2940d
@ -5689,6 +5689,12 @@
|
||||
githubId = 2536303;
|
||||
name = "Enno Lohmeier";
|
||||
};
|
||||
elpdt852 = {
|
||||
email = "nix@pdtpartners.com";
|
||||
github = "elpdt852";
|
||||
githubId = 122112154;
|
||||
name = "Edgar Lee";
|
||||
};
|
||||
elvishjerricco = {
|
||||
email = "elvishjerricco@gmail.com";
|
||||
matrix = "@elvishjerricco:matrix.org";
|
||||
|
32
pkgs/by-name/ni/nix-snapshotter/package.nix
Normal file
32
pkgs/by-name/ni/nix-snapshotter/package.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, callPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pdtpartners";
|
||||
repo = "nix-snapshotter";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hQ2b9Yx8g8okVWGo/iuvY2sR6FWI8iKp74m4gdXeueI=";
|
||||
};
|
||||
|
||||
nix-snapshotter-lib = callPackage "${src}/package.nix" {};
|
||||
|
||||
in buildGoModule {
|
||||
pname = "nix-snapshotter";
|
||||
inherit version src;
|
||||
vendorHash = "sha256-QBLePOnfsr6I19ddyZNSFDih6mCaZ/NV2Qz1B1pSHxs=";
|
||||
passthru = { inherit (nix-snapshotter-lib) buildImage; };
|
||||
|
||||
meta = {
|
||||
description = "Brings native understanding of Nix packages to containerd";
|
||||
homepage = "https://github.com/pdtpartners/nix-snapshotter";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ elpdt852 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user