1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

NIX: Grab specfile from lvm2Nix (at least for now).

This commit is contained in:
Petr Rockai 2013-05-26 18:13:25 +02:00 committed by Petr Rockai
parent 2f16d2ce27
commit f6350b4568

View File

@ -1,4 +1,4 @@
{ nixpkgs ? <nixpkgs>, lvm2Src, release ? false, rawhide32 ? "" , rawhide64 ? "" , fc19_32 ? "" , fc19_64 ? "" }:
{ nixpkgs ? <nixpkgs>, lvm2Src, release ? false, rawhide32 ? "" , rawhide64 ? "" , fc19_32 ? "" , fc19_64 ? "", lvm2Nix ? lvm2Src }:
let
pkgs = import nixpkgs {};
@ -138,7 +138,7 @@ let
version=`cat VERSION | cut "-d(" -f1`${versionSuffix}
version_dm=`cat VERSION_DM | cut "-d-" -f1`${versionSuffix}
sed -e s,-git,${versionSuffix}, -i VERSION VERSION_DM
mv spec/* . && rmdir spec
rm -rf spec; cp -R ${lvm2Nix}/spec/* .
chmod u+w *
(echo "%define enable_profiling 1";
echo "%define check_commands \\";