Xess tweaks

This commit is contained in:
Gabriel Simmer 2022-12-11 18:14:50 +00:00
parent 073d876fcf
commit 23d086d057
Signed by: arch
GPG key ID: C81B106D46C5B875
3 changed files with 47 additions and 44 deletions

View file

@ -1,5 +1,24 @@
{ {
"nodes": { "nodes": {
"Xess": {
"inputs": {
"nixpkgs": "nixpkgs",
"utils": "utils"
},
"locked": {
"lastModified": 1667763126,
"narHash": "sha256-wKn3q3hICvEfs0m3CaeJmLCSyWVuVw/5LgDdh3QSXkU=",
"owner": "Xe",
"repo": "Xess",
"rev": "882799a25ce4fa4df014ad701aaa5a9b23ff9e85",
"type": "github"
},
"original": {
"owner": "Xe",
"repo": "Xess",
"type": "github"
}
},
"crane": { "crane": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
@ -70,22 +89,6 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1669507072,
"narHash": "sha256-RQAHgHM7wfgUTWbEjb8Ki43tQUUcwIg1Ra+PNustAVI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e6b054555c9b10310543cd213ce7c70bb0cbc5f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1640319671, "lastModified": 1640319671,
"narHash": "sha256-ZkKmakwaOaLiZOpIZWbeJZwap5CzJ30s4UJTfydYIYc=", "narHash": "sha256-ZkKmakwaOaLiZOpIZWbeJZwap5CzJ30s4UJTfydYIYc=",
@ -101,12 +104,28 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1669507072,
"narHash": "sha256-RQAHgHM7wfgUTWbEjb8Ki43tQUUcwIg1Ra+PNustAVI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e6b054555c9b10310543cd213ce7c70bb0cbc5f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"Xess": "Xess",
"crane": "crane", "crane": "crane",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2"
"xess": "xess"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -148,25 +167,6 @@
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
},
"xess": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"utils": "utils"
},
"locked": {
"lastModified": 1667763126,
"narHash": "sha256-wKn3q3hICvEfs0m3CaeJmLCSyWVuVw/5LgDdh3QSXkU=",
"owner": "Xe",
"repo": "Xess",
"rev": "882799a25ce4fa4df014ad701aaa5a9b23ff9e85",
"type": "github"
},
"original": {
"owner": "Xe",
"repo": "Xess",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -11,10 +11,10 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
xess.url = "github:Xe/Xess"; Xess.url = "github:Xe/Xess";
}; };
outputs = { self, nixpkgs, crane, flake-utils, xess, ... }: outputs = { self, nixpkgs, crane, flake-utils, Xess, ... }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -38,14 +38,17 @@
inherit my-crate; inherit my-crate;
}; };
packages.default = my-crate;
apps.default = flake-utils.lib.mkApp { apps.default = flake-utils.lib.mkApp {
drv = my-crate; drv = my-crate;
}; };
packages = { packages = rec {
xess = xess.packages.${system}.customized ./static/css/theme.css; xess = Xess.packages.${system}.customized ./static/css/theme.css;
bin = my-crate;
default = pkgs.symlinkJoin {
name = "dref-${bin.version}";
paths = [ bin xess ];
};
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {

View file

@ -36,7 +36,7 @@ fn header(page_title: &str) -> Markup {
(DOCTYPE) (DOCTYPE)
meta charset="utf-8"; meta charset="utf-8";
title { (page_title) } title { (page_title) }
link rel="stylesheet" href="/static/css/style.css"; link rel="stylesheet" href="/static/css/xess.css";
} }
} }