2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, zlib}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cramfsswap";
|
|
|
|
version = "1.4.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2020-08-20 17:08:02 +00:00
|
|
|
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0c6lbx1inkbcvvhh3y6fvfaq3w7d1zv7psgpjs5f3zjk1jysi9qd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [zlib];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
installPhase = ''
|
|
|
|
install --target $out/bin -D cramfsswap
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Swap endianess of a cram filesystem (cramfs)";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://packages.debian.org/sid/utils/cramfsswap";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|