cramfsswap: Make binary available

Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
Pamplemousse 2020-07-31 09:01:40 -07:00 committed by Jon
parent ce10e04adf
commit 07ea06b143
2 changed files with 10 additions and 11 deletions

View File

@ -1,6 +0,0 @@
source $stdenv/setup
export DESTDIR=$out
mkdir -p $out/usr/bin
genericBuild

View File

@ -1,17 +1,22 @@
{stdenv, fetchurl, zlib}:
stdenv.mkDerivation {
name = "cramfsswap-1.4.1";
builder = ./builder.sh;
stdenv.mkDerivation rec {
pname = "cramfsswap";
version = "1.4.1";
src = fetchurl {
url = "mirror://debian/pool/main/c/cramfsswap/cramfsswap_1.4.1.tar.gz";
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.gz";
sha256 = "0c6lbx1inkbcvvhh3y6fvfaq3w7d1zv7psgpjs5f3zjk1jysi9qd";
};
buildInputs = [zlib];
installPhase = ''
install --target $out/bin -D cramfsswap
'';
meta = with stdenv.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";
license = licenses.gpl2;
platforms = platforms.linux;