add pkgs
This commit is contained in:
parent
b8db8ac342
commit
c1fbe53c27
Binary file not shown.
After Width: | Height: | Size: 5.1 MiB |
Binary file not shown.
After Width: | Height: | Size: 3.8 MiB |
|
@ -0,0 +1,20 @@
|
||||||
|
{ stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "atau-wallpapers";
|
||||||
|
pname = name;
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = ./assets;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
||||||
|
mv assets/* "$out/share/backgrounds/atau-wallpapers"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A collection of wallpapers for me";
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ atau ];
|
||||||
|
};
|
||||||
|
}
|
40
flake.lock
40
flake.lock
|
@ -1,12 +1,30 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1687171271,
|
||||||
|
"narHash": "sha256-BJlq+ozK2B1sJDQXS3tzJM5a+oVZmi1q0FlBK/Xqv7M=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686921029,
|
"lastModified": 1687288566,
|
||||||
"narHash": "sha256-J1bX9plPCFhTSh6E3TWn9XSxggBh/zDD4xigyaIQBy8=",
|
"narHash": "sha256-VckkiJ88Gzdc2cstm0z5eFcrHbvkm4VjxavHBGssvZI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c7ff1b9b95620ce8728c0d7bd501c458e6da9e04",
|
"rev": "b6c73c5fe53bb3afbf65e870541e0645e9145171",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -18,8 +36,24 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
70
flake.nix
70
flake.nix
|
@ -1,58 +1,24 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs }: {
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
overlay = final: prev: {
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
theme-platinum9 = with final; stdenv.mkDerivation {
|
in {
|
||||||
pname = "theme-platinum9";
|
defaultPackage = pkgs.callPackage ./atau-wallpapers/default.nix { };
|
||||||
name = "theme-platinum9";
|
}
|
||||||
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
|
);
|
||||||
|
|
||||||
src = fetchGit {
|
# overlay = final: prev: {
|
||||||
url = "https://git.atauno.com/atau/Platinum9.git";
|
# theme-platinum9 = with final; final.callPackage ./theme-platinum9 { };
|
||||||
rev = theme-platinum9.version;
|
# atau-wallpapers = with final; final.callPackage ./atau-wallpapers { };
|
||||||
};
|
# };
|
||||||
|
|
||||||
installPhase = ''
|
# packages.x86_64-linux.default = (import nixpkgs {
|
||||||
runHook preInstall
|
# system = "x86_64-linux";
|
||||||
|
# overlays = [ self.overlay ];
|
||||||
# Install themes
|
# });
|
||||||
mkdir -p "$out/share/themes"
|
|
||||||
mv ClassicPlatinumStreamlined "$out/share/themes"
|
|
||||||
mv PlatiPlus "$out/share/themes"
|
|
||||||
mv PlatiPlus26 "$out/share/themes"
|
|
||||||
|
|
||||||
# Install icons
|
|
||||||
mkdir -p "$out/share/icons"
|
|
||||||
mv NineIcons/ "$out/share/icons"
|
|
||||||
|
|
||||||
# Install fonts
|
|
||||||
mkdir -p "$out/share/fonts/truetype"
|
|
||||||
mv Charcoal.ttf "$out/share/fonts/truetype"
|
|
||||||
mv MONACO.TTF "$out/share/fonts/truetype"
|
|
||||||
|
|
||||||
# Install wallpapers
|
|
||||||
mkdir -p "$out/share/backgrounds"
|
|
||||||
mv OS9-wallpaper/ "$out/share/backgrounds"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/grassmunk/Platinum9.git";
|
|
||||||
description = "This is a quick and dirty theme meant to approximate (but not really be too pixel accurate) the MacOS 9 (or System 7) theme.";
|
|
||||||
platforms = platforms.unix;
|
|
||||||
maintainers = with maintainers; [ atau ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
packages.x86_64-linux.theme-platinum9 = (import nixpkgs {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
overlays = [ self.overlay ];
|
|
||||||
}).theme-platinum9;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
{ stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "theme-platinum9";
|
||||||
|
name = "theme-platinum9";
|
||||||
|
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
|
||||||
|
|
||||||
|
src = fetchGit {
|
||||||
|
url = "https://git.atauno.com/atau/Platinum9.git";
|
||||||
|
rev = theme-platinum9.version;
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
# Install themes
|
||||||
|
mkdir -p "$out/share/themes"
|
||||||
|
mv ClassicPlatinumStreamlined "$out/share/themes"
|
||||||
|
mv PlatiPlus "$out/share/themes"
|
||||||
|
mv PlatiPlus26 "$out/share/themes"
|
||||||
|
|
||||||
|
# Install icons
|
||||||
|
mkdir -p "$out/share/icons"
|
||||||
|
mv NineIcons/ "$out/share/icons"
|
||||||
|
|
||||||
|
# Install fonts
|
||||||
|
mkdir -p "$out/share/fonts/truetype"
|
||||||
|
mv Charcoal.ttf "$out/share/fonts/truetype"
|
||||||
|
mv MONACO.TTF "$out/share/fonts/truetype"
|
||||||
|
|
||||||
|
# Install wallpapers
|
||||||
|
mkdir -p "$out/share/backgrounds"
|
||||||
|
mv OS9-wallpaper/ "$out/share/backgrounds"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/grassmunk/Platinum9.git";
|
||||||
|
description = "This is a quick and dirty theme meant to approximate (but not really be too pixel accurate) the MacOS 9 (or System 7) theme.";
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ atau ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue