nixpart: Copy package expression to 0.4.nix.

Update the nixpart0 pointer to point to this version, because we're
going to update blivet as well and NixOps still points to nixpart0.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-10-22 01:29:18 +02:00
parent 34ae3b7f77
commit 7deadbb55f
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchurl, buildPythonPackage, blivet
# Propagated to blivet
, useNixUdev ? null, udevSoMajor ? null
}:
let
blivetOverrides = stdenv.lib.filterAttrs (k: v: v != null) {
inherit useNixUdev udevSoMajor;
};
in buildPythonPackage rec {
name = "nixpart-${version}";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/aszlig/nixpart/archive/v${version}.tar.gz";
sha256 = "0avwd8p47xy9cydlbjxk8pj8q75zyl68gw2w6fnkk78dcb1a3swp";
};
propagatedBuildInputs = [ (blivet.override blivetOverrides) ];
doCheck = false;
meta = {
description = "NixOS storage manager/partitioner";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.aszlig ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -123,7 +123,7 @@ let
# This is used for NixOps to make sure we won't break it with the next major
# version of nixpart.
nixpart0 = self.nixpart;
nixpart0 = callPackage ../tools/filesystems/nixpart/0.4.nix { };
pitz = callPackage ../applications/misc/pitz { };