Skip to content

Commit

Permalink
ecryptfs: use python2
Browse files Browse the repository at this point in the history
print statement
  • Loading branch information
FRidh committed Oct 18, 2016
1 parent d1dc91f commit 24071a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/security/ecryptfs/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, perl, utillinux, keyutils, nss, nspr, python, pam
{ stdenv, fetchurl, pkgconfig, perl, utillinux, keyutils, nss, nspr, python2, pam
, intltool, makeWrapper, coreutils, bash, gettext, cryptsetup, lvm2, rsync, which, lsof }:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
done
'';

buildInputs = [ pkgconfig perl nss nspr python pam intltool makeWrapper ];
buildInputs = [ pkgconfig perl nss nspr python2 pam intltool makeWrapper ];
propagatedBuildInputs = [ coreutils gettext cryptsetup lvm2 rsync keyutils which ];

postInstall = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/security/ecryptfs/helper.nix
@@ -1,7 +1,7 @@
{ stdenv
, fetchurl
, makeWrapper
, python
, python2
}:

stdenv.mkDerivation rec {
Expand All @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin $out/libexec
cp $src $out/libexec/ecryptfs-helper.py
makeWrapper "${python.interpreter} $out/libexec/ecryptfs-helper.py" $out/bin/ecryptfs-helper
makeWrapper "${python2.interpreter} $out/libexec/ecryptfs-helper.py" $out/bin/ecryptfs-helper
'';

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -1470,7 +1470,7 @@ in

ecryptfs = callPackage ../tools/security/ecryptfs { };

ecryptfs-helper = callPackage ../tools/security/ecryptfs/helper.nix { python = python2; };
ecryptfs-helper = callPackage ../tools/security/ecryptfs/helper.nix { };

editres = callPackage ../tools/graphics/editres { };

Expand Down

0 comments on commit 24071a0

Please sign in to comment.