nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 fetchFromGitHub, 3 lib, 4 nix-update-script, 5 openssl, 6 pkg-config, 7 rustPlatform, 8 versionCheckHook, 9}: 10 11rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "oci2git"; 13 version = "0.2.5"; 14 15 src = fetchFromGitHub { 16 owner = "Virviil"; 17 repo = "oci2git"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-il0u5SDFbY7NqBvfHeeIvJ2NPXms9wi+/hujYBINdcw="; 20 }; 21 22 cargoHash = "sha256-NuB0moVXOu2P19idPPp9v4LoqUZyz1r74Mh8y6V/dPg="; 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})