[Nix-dev] detox pkg

Lluís Batlle i Rossell viriketo at gmail.com
Mon Sep 6 09:17:19 CEST 2010


Thank you Tom and Karn! Applied.

On Sun, Sep 05, 2010 at 07:14:03PM -0430, Karn Kallio wrote:
> Here is the Nix expression for detox provided by Tom Ridge as a patch, for 
> easier application.
> 

> From 27ab43b5688fc373d9184f5d6bd8414bf9f96516 Mon Sep 17 00:00:00 2001
> From: Karn Kallio <kkallio at eka.(none)>
> Date: Sun, 5 Sep 2010 19:10:04 -0430
> Subject: [PATCH] Add Nix expression for detox.
> 
> Adds the Nix expression supplied to nix-dev mailing list by Tom Ridge.
> ---
>  pkgs/tools/misc/detox/default.nix |   24 ++++++++++++++++++++++++
>  pkgs/top-level/all-packages.nix   |    2 ++
>  2 files changed, 26 insertions(+), 0 deletions(-)
>  create mode 100644 pkgs/tools/misc/detox/default.nix
> 
> diff --git a/pkgs/tools/misc/detox/default.nix b/pkgs/tools/misc/detox/default.nix
> new file mode 100644
> index 0000000..ade1338
> --- /dev/null
> +++ b/pkgs/tools/misc/detox/default.nix
> @@ -0,0 +1,24 @@
> +{stdenv, fetchurl, flex}:
> +
> +stdenv.mkDerivation {
> +  name = "detox-1.2.0";
> +
> +  src = fetchurl {
> +    url = mirror://sourceforge/detox/1.2.0/detox-1.2.0.tar.gz;
> +    sha256 = "02cfkf3yhw64xg8mksln8w24gdwgm2x9g3vps7gn6jbjbfd8mh45";
> +  };
> +
> +  buildInputs = [flex];
> +
> +  meta = {
> +    description = "Detox is a utility designed to clean up filenames.";
> +    longDescription = ''
> +      Detox is a utility designed to clean up filenames. It replaces
> +      difficult to work with characters, such as spaces, with standard
> +      equivalents. It will also clean up filenames with UTF-8 or Latin-1
> +      (or CP-1252) characters in them.
> +    '';
> +    homepage = "http://detox.sourceforge.net/";
> +    license = "bsd";
> +  };
> +}
> diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
> index 7ae3c91..9aa4ba5 100644
> --- a/pkgs/top-level/all-packages.nix
> +++ b/pkgs/top-level/all-packages.nix
> @@ -517,6 +517,8 @@ let
>  
>    debootstrap = callPackage ../tools/misc/debootstrap { };
>  
> +  detox = callPackage ../tools/misc/detox { };
> +
>    ddclient = callPackage ../tools/networking/ddclient { };
>  
>    ddrescue = callPackage ../tools/system/ddrescue { };
> -- 
> 1.7.2.1
> 

> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev




More information about the nix-dev mailing list