flake: fix pwndbg
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
{ pwndbg }:
|
|
||||||
|
|
||||||
# "$ coredumpctl gdb" always runs "gdb" from your path.
|
|
||||||
pwndbg.overrideAttrs ({ installPhase ? "", ... }: {
|
|
||||||
installPhase = installPhase + ''
|
|
||||||
ln -s $out/bin/pwndbg $out/bin/gdb
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
99
flake.lock
generated
99
flake.lock
generated
@@ -192,6 +192,79 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pwndbg": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pyproject-build-systems": "pyproject-build-systems",
|
||||||
|
"pyproject-nix": "pyproject-nix",
|
||||||
|
"uv2nix": "uv2nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771451240,
|
||||||
|
"narHash": "sha256-qA8rm0zxrFBVbleYEOJziggyJtZEu1DFeAo3OAkbmB4=",
|
||||||
|
"owner": "pwndbg",
|
||||||
|
"repo": "pwndbg",
|
||||||
|
"rev": "5eb91f443cefb75fae9567aa23931670dc2277a9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pwndbg",
|
||||||
|
"repo": "pwndbg",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pyproject-build-systems": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"pwndbg",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pyproject-nix": [
|
||||||
|
"pwndbg",
|
||||||
|
"pyproject-nix"
|
||||||
|
],
|
||||||
|
"uv2nix": [
|
||||||
|
"pwndbg",
|
||||||
|
"uv2nix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1763662255,
|
||||||
|
"narHash": "sha256-4bocaOyLa3AfiS8KrWjZQYu+IAta05u3gYZzZ6zXbT0=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "build-system-pkgs",
|
||||||
|
"rev": "042904167604c681a090c07eb6967b4dd4dae88c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "build-system-pkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pyproject-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"pwndbg",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769936401,
|
||||||
|
"narHash": "sha256-kwCOegKLZJM9v/e/7cqwg1p/YjjTAukKPqmxKnAZRgA=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "pyproject.nix",
|
||||||
|
"rev": "b0d513eeeebed6d45b4f2e874f9afba2021f7812",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "pyproject.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"extra-config": "extra-config",
|
"extra-config": "extra-config",
|
||||||
@@ -203,6 +276,7 @@
|
|||||||
"nixpkgs-2211": "nixpkgs-2211",
|
"nixpkgs-2211": "nixpkgs-2211",
|
||||||
"nixpkgs-darwin": "nixpkgs-darwin",
|
"nixpkgs-darwin": "nixpkgs-darwin",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"pwndbg": "pwndbg",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -240,6 +314,31 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"uv2nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"pwndbg",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pyproject-nix": [
|
||||||
|
"pwndbg",
|
||||||
|
"pyproject-nix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769957392,
|
||||||
|
"narHash": "sha256-6PkqwwYf5K2CHi2V+faI/9pqjfz/HxUkI/MVid6hlOY=",
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "uv2nix",
|
||||||
|
"rev": "d18bc50ae1c3d4be9c41c2d94ea765524400af75",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pyproject-nix",
|
||||||
|
"repo": "uv2nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
15
flake.nix
15
flake.nix
@@ -2,6 +2,7 @@
|
|||||||
description = "Felixalb System flake";
|
description = "Felixalb System flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
# Nixpkgs and friends
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; # Remember to update ./common/auto-upgrade.nix
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; # Remember to update ./common/auto-upgrade.nix
|
||||||
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-25.11-darwin";
|
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-25.11-darwin";
|
||||||
nixpkgs-2211.url = "https://github.com/NixOS/nixpkgs/archive/34bfa9403e42eece93d1a3740e9d8a02fceafbca.tar.gz"; # old nixpgks for e.g. remmina
|
nixpkgs-2211.url = "https://github.com/NixOS/nixpkgs/archive/34bfa9403e42eece93d1a3740e9d8a02fceafbca.tar.gz"; # old nixpgks for e.g. remmina
|
||||||
@@ -13,13 +14,17 @@
|
|||||||
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# Other inputs
|
||||||
|
extra-config.url = "git+file:///home/felixalb/nix-extra-config";
|
||||||
|
|
||||||
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules"; # TODO: Lock to release
|
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules"; # TODO: Lock to release
|
||||||
matrix-synapse-next.inputs.nixpkgs.follows = "nixpkgs";
|
matrix-synapse-next.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||||
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
|
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
extra-config.url = "git+file:///home/felixalb/nix-extra-config";
|
pwndbg.url = "github:pwndbg/pwndbg";
|
||||||
|
pwndbg.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -27,16 +32,17 @@
|
|||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self
|
self
|
||||||
|
, extra-config
|
||||||
, home-manager
|
, home-manager
|
||||||
, matrix-synapse-next
|
, matrix-synapse-next
|
||||||
, nix-minecraft
|
|
||||||
, nix-darwin
|
, nix-darwin
|
||||||
|
, nix-minecraft
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, nixpkgs-2211
|
, nixpkgs-2211
|
||||||
, nixpkgs-darwin
|
, nixpkgs-darwin
|
||||||
, nixpkgs-unstable
|
, nixpkgs-unstable
|
||||||
|
, pwndbg
|
||||||
, sops-nix
|
, sops-nix
|
||||||
, extra-config
|
|
||||||
, ... }@inputs:
|
, ... }@inputs:
|
||||||
let
|
let
|
||||||
pkgs-overlay = final: prev: {
|
pkgs-overlay = final: prev: {
|
||||||
@@ -50,7 +56,8 @@
|
|||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
pwndbg-gdb-alias = prev.callPackage ./common/pwndbg-gdb-alias.nix { };
|
pwndbg = pwndbg.packages."${prev.system}".default;
|
||||||
|
|
||||||
securecrt = prev.callPackage ./common/securecrt.nix { };
|
securecrt = prev.callPackage ./common/securecrt.nix { };
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -48,9 +48,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
ignores = [
|
ignores = [
|
||||||
"*~"
|
|
||||||
"*.swp"
|
"*.swp"
|
||||||
|
"*~"
|
||||||
".DS_Store"
|
".DS_Store"
|
||||||
|
".gdb_history"
|
||||||
".vscode"
|
".vscode"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
exiftool
|
exiftool
|
||||||
ghidra
|
ghidra
|
||||||
# pwndbg-gdb-alias # Broken in 25.05
|
pwndbg-gdb-alias
|
||||||
snicat
|
snicat
|
||||||
|
|
||||||
# Window Manager Extras
|
# Window Manager Extras
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
let
|
let
|
||||||
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { };
|
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { };
|
||||||
|
# TODO: Add github:pwndbg/pwndbg
|
||||||
in { pkgs ? import <nixpkgs> {} }:
|
in { pkgs ? import <nixpkgs> {} }:
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
@@ -48,7 +49,6 @@ in { pkgs ? import <nixpkgs> {} }:
|
|||||||
# stegsolve
|
# stegsolve
|
||||||
gdb
|
gdb
|
||||||
metasploit
|
metasploit
|
||||||
pwndbg
|
|
||||||
pwninit
|
pwninit
|
||||||
ropgadget
|
ropgadget
|
||||||
sage
|
sage
|
||||||
@@ -56,5 +56,4 @@ in { pkgs ? import <nixpkgs> {} }:
|
|||||||
tcpdump
|
tcpdump
|
||||||
wireshark
|
wireshark
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user