forked from DalekCraft2/Shimeji-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (29 loc) · 755 Bytes
/
flake.nix
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
31
32
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
defaultPackage = pkgs.callPackage ./. { };
in {
packages.${system} = {
default = defaultPackage;
# https://github.com/NixOS/nixpkgs/issues/356340
fhs4gnome = pkgs.buildFHSEnv {
inherit (defaultPackage) pname version;
runScript = pkgs.lib.getExe defaultPackage;
targetPkgs = ps: with ps; [ gnome-shell ];
extraInstallCommands = ''
ln -s ${defaultPackage}/share $out/
'';
};
};
devShells.${system}.default = import ./shell.nix {
inherit pkgs;
};
};
}