nixpkgs/pkgs/applications/virtualization/railcar/default.nix
Alyssa Ross 062210bdff treewide: update cargoSha256 hashes for cargo-vendor upgrade
A recent upgrade of cargo-vendor changed its output slightly, which
broke all cargoSha256 hashes in nixpkgs.
See https://github.com/NixOS/nixpkgs/issues/60668 for more information.

Since then, a few hashes have been fixed in master by hand, but there
were a lot still to do, so I did all of the ones left over with some
scripts I wrote.

The one hash I wasn’t able to update was habitat's, because it’s
currently broken and the build doesn’t get far enough to produce a
hash anyway.
2019-06-01 15:17:52 +00:00

29 lines
841 B
Nix

{ stdenv, lib, fetchFromGitHub, fetchpatch, rustPlatform, libseccomp }:
rustPlatform.buildRustPackage rec {
name = "railcar-${version}";
version = "1.0.4";
src = fetchFromGitHub {
owner = "oracle";
repo = "railcar";
rev = "v${version}";
sha256 = "09zn160qxd7760ii6rs5nhr00qmaz49x1plclscznxh9hinyjyh9";
};
cargoSha256 = "1k4y37x783fsd8li17k56vlx5ziwmrz167a0w5mcb9sgyd2kc19a";
buildInputs = [ libseccomp ];
# Submitted upstream https://github.com/oracle/railcar/pull/44
cargoPatches = [ ./cargo-lock.patch ];
meta = with lib; {
description = "Rust implementation of the Open Containers Initiative oci-runtime";
homepage = https://github.com/oracle/railcar;
license = with licenses; [ asl20 /* or */ upl ];
maintainers = [ maintainers.spacekookie ];
platforms = platforms.all;
};
}