[Nix-dev] Re: [Nix-commits] SVN commit: nix - r26304 - in nixpkgs/trunk/pkgs: lib tools/system/gptfdisk top-level

Shea Levy shea at shealevy.com
Tue Mar 15 17:03:41 CET 2011


On 3/14/11 5:13 PM, Lluís Batlle wrote:
> Author: viric
> Date: Mon Mar 14 21:13:35 2011
> New Revision: 26304
> URL: https://svn.nixos.org/websvn/nix/?rev=26304&sc=1
>
> Log:
> Adding gptfdisk (patch by Shea Levy).
> I add him in the maintainers list.
> I changed slightly the indentation of the expressions.
>
> Added:
>     nixpkgs/trunk/pkgs/tools/system/gptfdisk/
>     nixpkgs/trunk/pkgs/tools/system/gptfdisk/default.nix
> Modified:
>     nixpkgs/trunk/pkgs/lib/maintainers.nix
>     nixpkgs/trunk/pkgs/top-level/all-packages.nix
>
> Modified: nixpkgs/trunk/pkgs/lib/maintainers.nix
> ==============================================================================
> --- nixpkgs/trunk/pkgs/lib/maintainers.nix	Mon Mar 14 18:26:46 2011	(r26303)
> +++ nixpkgs/trunk/pkgs/lib/maintainers.nix	Mon Mar 14 21:13:35 2011	(r26304)
> @@ -21,6 +21,7 @@
>     raskin = "Michael Raskin<7c6f434c at mail.ru>";
>     roconnor = "Russell O'Connor<roconnor at theorem.ca>";
>     sander = "Sander van der Burg<s.vanderburg at tudelft.nl>";
> +  shlevy = "Shea Levy<shea at shealevy.com>";
>     simons = "Peter Simons<simons at cryp.to>";
>     thammers = "Tobias Hammerschmidt<jawr at gmx.de>";
>     urkud = "Yury G. Kudryashov<urkud+nix at ya.ru>";
>
> Added: nixpkgs/trunk/pkgs/tools/system/gptfdisk/default.nix
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ nixpkgs/trunk/pkgs/tools/system/gptfdisk/default.nix	Mon Mar 14 21:13:35 2011	(r26304)
> @@ -0,0 +1,31 @@
> +{ fetchurl, stdenv, libuuid, popt }:
> +
> +stdenv.mkDerivation rec {
> +  name = "gptfdisk-0.7.0";
> +
> +  src = fetchurl {
> +    url = "http://www.rodsbooks.com/gdisk/${name}.tgz";
> +    sha256 = "1912l01pj7wcaj2fp06yl6m893c52qh2qy0bkx33k6iq2k747zrf";
> +  };
> +
> +  buildInputs = [ libuuid popt ];
> +
> +  installPhase = ''
> +    ensureDir $out/bin
> +    ensureDir $out/share/man/man8
> +    install -v -m755 gdisk sgdisk fixparts $out/bin
> +    install -v -m644 gdisk.8 sgdisk.8 fixparts.8 \
> +        $out/share/man/man8
> +  '';
> +
> +  meta = {
> +    description = "A set of text-mode partitioning tools for Globally Unique Identifier (GUID) Partition Table (GPT) disks";
> +
> +    license = "GPLv2";
> +
> +    homepage = http://www.rodsbooks.com/gdisk/;
> +
> +    maintainers = stdenv.lib.maintainers.shlevy;
> +    platforms = stdenv.lib.platforms.linux;
> +  };
> +}
>
> Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
> ==============================================================================
> --- nixpkgs/trunk/pkgs/top-level/all-packages.nix	Mon Mar 14 18:26:46 2011	(r26303)
> +++ nixpkgs/trunk/pkgs/top-level/all-packages.nix	Mon Mar 14 21:13:35 2011	(r26304)
> @@ -726,6 +726,8 @@
>
>     gource = callPackage ../tools/misc/gource { };
>
> +  gptfdisk = callPackage ../tools/system/gptfdisk { };
> +
>     graphviz = callPackage ../tools/graphics/graphviz {
>       inherit (gtkLibs) pango;
>     };
> _______________________________________________
> nix-commits mailing list
> nix-commits at cs.uu.nl
> http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Whoops, these binaries should really go into $out/sbin, not $out/bin. 
Patch attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gptfdisk-sbin.patch
Url: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20110315/1bf11fd5/attachment.pl 


More information about the nix-dev mailing list