mirror of
https://github.com/Noratrieb/winxpbg.git
synced 2026-03-14 14:36:11 +01:00
Add nix derivation and overlay
This commit is contained in:
parent
39be4753e4
commit
59fc159b33
2 changed files with 49 additions and 0 deletions
4
default.nix
Normal file
4
default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Overlay
|
||||
final: _: {
|
||||
winxpbg = final.callPackage ./package.nix { };
|
||||
}
|
||||
45
package.nix
Normal file
45
package.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
wrapGAppsHook4,
|
||||
glib,
|
||||
gtk4,
|
||||
webkitgtk_6_0,
|
||||
gtk4-layer-shell,
|
||||
}:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
|
||||
files = fs.unions [
|
||||
./view
|
||||
];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "winxpbg";
|
||||
inherit ((builtins.fromTOML (builtins.readFile ./view/Cargo.toml)).package) version;
|
||||
|
||||
src = fs.toSource {
|
||||
root = ./view;
|
||||
fileset = files;
|
||||
};
|
||||
|
||||
cargoLock.lockFile = ./view/Cargo.lock;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk4
|
||||
webkitgtk_6_0
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Windows XP as your desktop background";
|
||||
mainProgram = "minxpbg";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue