Merge pull request #135400 from r-burns/cramfsswap

cramfsswap: 1.4.1 -> 1.4.2, cleanup
This commit is contained in:
Sandro 2021-08-23 10:02:02 +02:00 committed by GitHub
commit 1e7e502a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,18 @@
stdenv.mkDerivation rec {
pname = "cramfsswap";
version = "1.4.1";
version = "1.4.2";
src = fetchurl {
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.gz";
sha256 = "0c6lbx1inkbcvvhh3y6fvfaq3w7d1zv7psgpjs5f3zjk1jysi9qd";
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.xz";
sha256 = "10mj45zx71inaa3l1d81g64f7yn1xcprvq4v4yzpdwbxqmqaikw1";
};
# Needed for cross-compilation
postPatch = ''
substituteInPlace Makefile --replace 'strip ' '$(STRIP) '
'';
buildInputs = [zlib];
installPhase = ''
@ -18,7 +23,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Swap endianess of a cram filesystem (cramfs)";
homepage = "https://packages.debian.org/sid/utils/cramfsswap";
license = licenses.gpl2;
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}