2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
2023-04-29 16:46:19 +00:00
|
|
|
, buildFHSEnv
|
2023-03-24 00:07:29 +00:00
|
|
|
, sparrow-unwrapped
|
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
buildFHSEnv {
|
2023-07-15 17:15:38 +00:00
|
|
|
name = "sparrow-desktop";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
runScript = "${sparrow-unwrapped}/bin/sparrow-desktop";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
targetPkgs = pkgs: with pkgs; [
|
|
|
|
sparrow-unwrapped
|
|
|
|
pcsclite
|
|
|
|
];
|
|
|
|
|
|
|
|
multiPkgs = pkgs: with pkgs; [
|
|
|
|
pcsclite
|
|
|
|
];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
ln -s ${sparrow-unwrapped}/share/applications $out/share
|
|
|
|
ln -s ${sparrow-unwrapped}/share/icons $out/share
|
|
|
|
|
|
|
|
mkdir -p $out/etc/udev
|
|
|
|
ln -s ${sparrow-unwrapped}/etc/udev/rules.d $out/etc/udev/rules.d
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = sparrow-unwrapped.meta;
|
|
|
|
}
|