c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
30 lines
564 B
Nix
30 lines
564 B
Nix
{ lib
|
|
, buildFHSEnv
|
|
, sparrow-unwrapped
|
|
}:
|
|
|
|
buildFHSEnv {
|
|
name = "sparrow";
|
|
|
|
runScript = "${sparrow-unwrapped}/bin/sparrow";
|
|
|
|
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;
|
|
}
|