about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/sparrow/fhsenv.nix
blob: 26bf9da0b85dd918af60579b1017954b98f4f738 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildFHSEnv
, sparrow-unwrapped
}:

buildFHSEnv {
  name = "sparrow-desktop";

  runScript = "${sparrow-unwrapped}/bin/sparrow-desktop";

  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;
}