mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
31 lines
572 B
Nix
31 lines
572 B
Nix
|
{ lib
|
||
|
, buildFHSUserEnv
|
||
|
, sparrow-unwrapped
|
||
|
}:
|
||
|
|
||
|
buildFHSUserEnv {
|
||
|
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;
|
||
|
}
|