nixpkgs/pkgs/applications/blockchains/sparrow/fhsenv.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
564 B
Nix
Raw Normal View History

2023-02-18 01:31:55 +01:00
{ lib
, buildFHSEnv
2023-02-18 01:31:55 +01:00
, sparrow-unwrapped
}:
buildFHSEnv {
2023-02-18 01:31:55 +01:00
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;
}