From 5aec79e3cac0a1fee6161c758ff6e851787bcaf9 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sat, 24 Mar 2007 12:01:50 +0000 Subject: [PATCH] add cramfsswap svn path=/nixpkgs/trunk/; revision=8412 --- pkgs/os-specific/linux/cramfsswap/builder.sh | 6 ++++++ pkgs/os-specific/linux/cramfsswap/default.nix | 12 ++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 pkgs/os-specific/linux/cramfsswap/builder.sh create mode 100644 pkgs/os-specific/linux/cramfsswap/default.nix diff --git a/pkgs/os-specific/linux/cramfsswap/builder.sh b/pkgs/os-specific/linux/cramfsswap/builder.sh new file mode 100644 index 000000000000..14e6a11f9d05 --- /dev/null +++ b/pkgs/os-specific/linux/cramfsswap/builder.sh @@ -0,0 +1,6 @@ +source $stdenv/setup + +export DESTDIR=$out +ensureDir $out/usr/bin + +genericBuild diff --git a/pkgs/os-specific/linux/cramfsswap/default.nix b/pkgs/os-specific/linux/cramfsswap/default.nix new file mode 100644 index 000000000000..4c436d33167a --- /dev/null +++ b/pkgs/os-specific/linux/cramfsswap/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, zlib}: + +stdenv.mkDerivation { + name = "cramfsswap-1.3.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.debian.org/debian/pool/main/c/cramfsswap/cramfsswap_1.3.1.tar.gz; + sha256 = "1dh1z50spxgi0nn33ag7zzm2svl8h1w32kfhy1lzc2vxvxdfyq9r"; + }; + + buildInputs = [zlib]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34c1a8d2c6d4..2c4903a8f0bc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2171,6 +2171,10 @@ rec { inherit fetchurl stdenv alsaLib ncurses gettext; }; + cramfsswap = import ../os-specific/linux/cramfsswap { + inherit fetchurl stdenv zlib; + }; + #uclibcSparc = import ../development/uclibc { # inherit fetchurl stdenv mktemp; # kernelHeadersCross = kernelHeadersSparc;