Skip to content

Commit

Permalink
fix: update the flake to use the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Jun 29, 2023
1 parent 48acd11 commit 539968d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
./src
./Cargo.toml
./Cargo.lock
./Makefile
./data
];
};
nativeBuildInputs = with pkgs; [ pkg-config rustPlatform.bindgenHook ];
Expand All @@ -47,7 +49,12 @@
inherit xdg-desktop-portal-cosmic;
};

packages.default = xdg-desktop-portal-cosmic;
packages.default = xdg-desktop-portal-cosmic.overrideAttrs (oldAttrs: rec {
installPhase = ''
make install prefix=$out
'';
passthru.providedSessions = [ "cosmic" ];
});

apps.default = flake-utils.lib.mkApp {
drv = xdg-desktop-portal-cosmic;
Expand Down

0 comments on commit 539968d

Please sign in to comment.