File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ fetchFromGitHub ,
3+ lib ,
4+ nix-update-script ,
5+ openssl ,
6+ pkg-config ,
7+ rustPlatform ,
8+ versionCheckHook ,
9+ } :
10+
11+ rustPlatform . buildRustPackage ( finalAttrs : {
12+ pname = "oci2git" ;
13+ version = "0.1.4" ;
14+
15+ src = fetchFromGitHub {
16+ owner = "Virviil" ;
17+ repo = "oci2git" ;
18+ tag = "v${ finalAttrs . version } " ;
19+ hash = "sha256-vz4OqRg7CYliAswQWtzEWUb7Z10fwxDhYrvQ3q4ZtPA=" ;
20+ } ;
21+
22+ cargoHash = "sha256-Aj93f+L4h1FxHpWehD11sTPXTFsg2B9rJ96mSJ/VVQ4=" ;
23+
24+ nativeBuildInputs = [
25+ pkg-config
26+ ] ;
27+
28+ buildInputs = [
29+ openssl
30+ ] ;
31+
32+ doInstallCheck = true ;
33+ nativeInstallCheckInputs = [ versionCheckHook ] ;
34+
35+ passthru . updateScript = nix-update-script { } ;
36+
37+ meta = {
38+ description = "Introspecting Docker images as easy as using Git" ;
39+ homepage = "https://github.com/Virviil/oci2git" ;
40+ changelog = "https://github.com/Virviil/oci2git/releases/tag/v${ finalAttrs . version } " ;
41+ license = [ lib . licenses . mit ] ;
42+ maintainers = [ lib . maintainers . kpbaks ] ;
43+ mainProgram = "oci2git" ;
44+ platforms = lib . platforms . all ;
45+ } ;
46+ } )
You can’t perform that action at this time.
0 commit comments