add wallpaper package
This commit is contained in:
parent
c1fbe53c27
commit
2c4131c5e5
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv }:
|
{ lib, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "atau-wallpapers";
|
name = "atau-wallpapers";
|
||||||
pname = name;
|
pname = name;
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
@ -8,8 +8,12 @@ stdenv.mkDerivation {
|
||||||
src = ./assets;
|
src = ./assets;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
||||||
mv assets/* "$out/share/backgrounds/atau-wallpapers"
|
mv * "$out/share/backgrounds/atau-wallpapers/"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
17
flake.nix
17
flake.nix
|
@ -8,17 +8,12 @@
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
defaultPackage = pkgs.callPackage ./atau-wallpapers/default.nix { };
|
packages = rec {
|
||||||
|
atau-wallpapers = pkgs.callPackage ./atau-wallpapers/default.nix { };
|
||||||
|
theme-platinum9 = pkgs.callPackage ./theme-platinum9/default.nix { };
|
||||||
|
|
||||||
|
default = theme-platinum9;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
# overlay = final: prev: {
|
|
||||||
# theme-platinum9 = with final; final.callPackage ./theme-platinum9 { };
|
|
||||||
# atau-wallpapers = with final; final.callPackage ./atau-wallpapers { };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# packages.x86_64-linux.default = (import nixpkgs {
|
|
||||||
# system = "x86_64-linux";
|
|
||||||
# overlays = [ self.overlay ];
|
|
||||||
# });
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{ stdenv }:
|
{ lib, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "theme-platinum9";
|
|
||||||
name = "theme-platinum9";
|
name = "theme-platinum9";
|
||||||
|
pname = name;
|
||||||
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
|
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
|
||||||
|
|
||||||
src = fetchGit {
|
src = fetchGit {
|
||||||
url = "https://git.atauno.com/atau/Platinum9.git";
|
url = "https://git.atauno.com/atau/Platinum9.git";
|
||||||
rev = theme-platinum9.version;
|
rev = version;
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in New Issue