13 version = "2020.03.05";
15 src = fetchFromGitHub {
19 sha256 = "sha256-YXa4vErt3YnomTKAXCv8yUVhcc0ST47n9waW5E8QZzY=";
22 vendorHash = "sha256-OL6I95IpyTIc8wCwD9nWxVUTrmZH6COhsd/YwNTyvN0=";
24 ldflags = [ "-s" "-w" ];
27 grep -lr '/s\?bin/' | xargs sed -i \
28 -e 's|/bin/mount|${mount}/bin/mount|' \
29 -e 's|/bin/umount|${umount}/bin/umount|' \
30 -e 's|/bin/cp|${coreutils}/bin/cp|' \
31 -e 's|/bin/mv|${coreutils}/bin/mv|' \
32 -e 's|/bin/chown|${coreutils}/bin/chown|' \
33 -e 's|/bin/date|${coreutils}/bin/date|' \
34 -e 's|/sbin/poweroff|${systemd}/sbin/poweroff|' \
35 -e 's|/usr/bin/sudo|/run/wrappers/bin/sudo|' \
36 -e 's|/sbin/cryptsetup|${cryptsetup}/bin/cryptsetup|'
41 cp -R $src/static $out/share
44 # Tests are broken due to an error during key generation.
48 homepage = "https://github.com/usbarmory/interlock";
49 description = "File encryption tool and an HSM frontend";
50 mainProgram = "interlock";
51 license = licenses.gpl3Plus;
52 platforms = platforms.linux;