Compare commits
2 Commits
c2d6471e94
...
a7ebf5ad81
| Author | SHA1 | Date | |
|---|---|---|---|
| a7ebf5ad81 | |||
| 9ffb9afee7 |
35
flake.lock
generated
35
flake.lock
generated
@@ -430,39 +430,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nono": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1771408289,
|
|
||||||
"narHash": "sha256-eKhLcC6Ssv3dQjYLFrGEdaPdEbnSGXLZVXG4cdTPKOU=",
|
|
||||||
"owner": "lukehinds",
|
|
||||||
"repo": "nono",
|
|
||||||
"rev": "cf93f976e8f37b83f496b04ccb1054b55aca55f0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "lukehinds",
|
|
||||||
"repo": "nono",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"openusage": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1770543295,
|
|
||||||
"narHash": "sha256-DvgEPZhFm06igalUPgnQ8VLkl0gk/3rm+lbEJ2/s7gM=",
|
|
||||||
"owner": "robinebers",
|
|
||||||
"repo": "openusage",
|
|
||||||
"rev": "22a7bd5f7856397400e60dd787ad82b23c763969",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "robinebers",
|
|
||||||
"ref": "v0.5.1",
|
|
||||||
"repo": "openusage",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"overseer": {
|
"overseer": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -493,8 +460,6 @@
|
|||||||
"nix-homebrew": "nix-homebrew",
|
"nix-homebrew": "nix-homebrew",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nono": "nono",
|
|
||||||
"openusage": "openusage",
|
|
||||||
"overseer": "overseer",
|
"overseer": "overseer",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,18 +39,10 @@
|
|||||||
url = "github:jnsahaj/lumen";
|
url = "github:jnsahaj/lumen";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nono = {
|
|
||||||
url = "github:lukehinds/nono";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
overseer = {
|
overseer = {
|
||||||
url = "github:dmmulroy/overseer";
|
url = "github:dmmulroy/overseer";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
openusage = {
|
|
||||||
url = "github:robinebers/openusage/v0.5.1";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {flake-parts, ...}:
|
outputs = inputs @ {flake-parts, ...}:
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
../../profiles/lazygit.nix
|
../../profiles/lazygit.nix
|
||||||
../../profiles/lumen.nix
|
../../profiles/lumen.nix
|
||||||
../../profiles/mise.nix
|
../../profiles/mise.nix
|
||||||
../../profiles/nono.nix
|
|
||||||
../../profiles/neovim
|
../../profiles/neovim
|
||||||
../../profiles/opencode.nix
|
../../profiles/opencode.nix
|
||||||
../../profiles/claude-code.nix
|
../../profiles/claude-code.nix
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
../../profiles/lazygit.nix
|
../../profiles/lazygit.nix
|
||||||
../../profiles/lumen.nix
|
../../profiles/lumen.nix
|
||||||
../../profiles/mise.nix
|
../../profiles/mise.nix
|
||||||
../../profiles/nono.nix
|
|
||||||
../../profiles/neovim
|
../../profiles/neovim
|
||||||
../../profiles/opencode.nix
|
../../profiles/opencode.nix
|
||||||
../../profiles/claude-code.nix
|
../../profiles/claude-code.nix
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
../../profiles/lazygit.nix
|
../../profiles/lazygit.nix
|
||||||
../../profiles/lumen.nix
|
../../profiles/lumen.nix
|
||||||
../../profiles/mise.nix
|
../../profiles/mise.nix
|
||||||
../../profiles/nono.nix
|
|
||||||
../../profiles/neovim
|
../../profiles/neovim
|
||||||
../../profiles/opencode.nix
|
../../profiles/opencode.nix
|
||||||
../../profiles/overseer.nix
|
../../profiles/overseer.nix
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
{inputs}: final: prev: let
|
|
||||||
manifest = (prev.lib.importTOML "${inputs.nono}/Cargo.toml").package;
|
|
||||||
in {
|
|
||||||
nono =
|
|
||||||
prev.rustPlatform.buildRustPackage {
|
|
||||||
pname = manifest.name;
|
|
||||||
version = manifest.version;
|
|
||||||
|
|
||||||
cargoLock.lockFile = "${inputs.nono}/Cargo.lock";
|
|
||||||
|
|
||||||
src = inputs.nono;
|
|
||||||
|
|
||||||
nativeBuildInputs = with prev; [pkg-config];
|
|
||||||
buildInputs = with prev; [openssl dbus];
|
|
||||||
OPENSSL_NO_VENDOR = 1;
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
{inputs}: final: prev: let
|
|
||||||
version = "0.5.1";
|
|
||||||
in {
|
|
||||||
openusage =
|
|
||||||
prev.rustPlatform.buildRustPackage (finalAttrs: {
|
|
||||||
pname = "openusage";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = inputs.openusage;
|
|
||||||
|
|
||||||
cargoRoot = "src-tauri";
|
|
||||||
cargoLock = {
|
|
||||||
lockFile = "${inputs.openusage}/src-tauri/Cargo.lock";
|
|
||||||
outputHashes = {
|
|
||||||
"tauri-nspanel-2.1.0" = "sha256-PLACEHOLDER";
|
|
||||||
"tauri-plugin-aptabase-1.0.0" = "sha256-PLACEHOLDER";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
||||||
|
|
||||||
node_modules =
|
|
||||||
prev.stdenv.mkDerivation {
|
|
||||||
inherit (finalAttrs) src version;
|
|
||||||
pname = "${finalAttrs.pname}-node_modules";
|
|
||||||
|
|
||||||
impureEnvVars =
|
|
||||||
prev.lib.fetchers.proxyImpureEnvVars
|
|
||||||
++ [
|
|
||||||
"GIT_PROXY_COMMAND"
|
|
||||||
"SOCKS_SERVER"
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
prev.bun
|
|
||||||
prev.writableTmpDirAsHomeHook
|
|
||||||
];
|
|
||||||
|
|
||||||
dontConfigure = true;
|
|
||||||
dontFixup = true;
|
|
||||||
dontPatchShebangs = true;
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
export BUN_INSTALL_CACHE_DIR=$(mktemp -d)
|
|
||||||
|
|
||||||
bun install \
|
|
||||||
--no-progress \
|
|
||||||
--frozen-lockfile \
|
|
||||||
--ignore-scripts
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
cp -R ./node_modules $out
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
outputHash = "sha256-PLACEHOLDER";
|
|
||||||
outputHashMode = "recursive";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
prev.cargo-tauri.hook
|
|
||||||
prev.rustPlatform.bindgenHook
|
|
||||||
prev.bun
|
|
||||||
prev.nodejs
|
|
||||||
prev.pkg-config
|
|
||||||
prev.makeBinaryWrapper
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs =
|
|
||||||
prev.lib.optionals prev.stdenv.isDarwin (
|
|
||||||
with prev.darwin.apple_sdk.frameworks; [
|
|
||||||
AppKit
|
|
||||||
CoreFoundation
|
|
||||||
CoreServices
|
|
||||||
Security
|
|
||||||
WebKit
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
# Disable updater artifact generation — we don't have signing keys.
|
|
||||||
tauriConf = builtins.toJSON {bundle.createUpdaterArtifacts = false;};
|
|
||||||
passAsFile = ["tauriConf"];
|
|
||||||
preBuild = ''
|
|
||||||
tauriBuildFlags+=(
|
|
||||||
"--config"
|
|
||||||
"$tauriConfPath"
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
runHook preConfigure
|
|
||||||
|
|
||||||
# Copy pre-fetched node_modules
|
|
||||||
cp -R ${finalAttrs.node_modules} node_modules/
|
|
||||||
chmod -R u+rw node_modules
|
|
||||||
chmod -R u+x node_modules/.bin
|
|
||||||
patchShebangs node_modules
|
|
||||||
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
export PATH="$PWD/node_modules/.bin:$PATH"
|
|
||||||
|
|
||||||
# Bundle plugins (copy from plugins/ to src-tauri/resources/bundled_plugins/)
|
|
||||||
${prev.nodejs}/bin/node copy-bundled.cjs
|
|
||||||
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
|
||||||
|
|
||||||
env = {
|
|
||||||
OPENSSL_NO_VENDOR = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall =
|
|
||||||
prev.lib.optionalString prev.stdenv.isDarwin ''
|
|
||||||
makeWrapper $out/Applications/OpenUsage.app/Contents/MacOS/OpenUsage $out/bin/openusage
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Track all your AI coding subscriptions in one place";
|
|
||||||
homepage = "https://github.com/robinebers/openusage";
|
|
||||||
license = prev.lib.licenses.mit;
|
|
||||||
platforms = prev.lib.platforms.darwin;
|
|
||||||
mainProgram = "openusage";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
nono
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -52,7 +52,6 @@ with pkgs;
|
|||||||
alcove
|
alcove
|
||||||
dockutil
|
dockutil
|
||||||
mas
|
mas
|
||||||
openusage
|
|
||||||
raycast
|
raycast
|
||||||
tailscale
|
tailscale
|
||||||
xcodes
|
xcodes
|
||||||
|
|||||||
Reference in New Issue
Block a user