cramfsswap: 1.4.1 -> 1.4.2, cleanup

* fix cross-compilation
* clarify license
This commit is contained in:
Ryan Burns 2021-08-21 02:45:44 -07:00
parent 2689bd2472
commit 1ebfe95372

View file

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