Add a modified nix-init
:)
This commit is contained in:
parent
b982c6ef0d
commit
deeedb8f06
2 changed files with 27 additions and 0 deletions
22
home/packages/nix-init/default_to_package.diff
Normal file
22
home/packages/nix-init/default_to_package.diff
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff --git a/src/main.rs b/src/main.rs
|
||||
index 27e20ec..c76417d 100644
|
||||
--- a/src/main.rs
|
||||
+++ b/src/main.rs
|
||||
@@ -439,7 +439,7 @@ async fn run() -> Result<()> {
|
||||
|
||||
let (out_dir, out_path) = if let Ok(metadata) = metadata(&output) {
|
||||
if metadata.is_dir() {
|
||||
- let out_path = output.join("default.nix");
|
||||
+ let out_path = output.join("package.nix");
|
||||
if out_path.exists() && ask_overwrite(&mut editor, &out_path)? {
|
||||
return Ok(());
|
||||
}
|
||||
@@ -453,7 +453,7 @@ async fn run() -> Result<()> {
|
||||
.map_or(false, |out_path| out_path.ends_with_str(b"/"))
|
||||
{
|
||||
let _ = create_dir_all(&output);
|
||||
- (Some(output.as_ref()), output.join("default.nix"))
|
||||
+ (Some(output.as_ref()), output.join("package.nix"))
|
||||
} else {
|
||||
let out_dir = output.parent();
|
||||
if let Some(out_dir) = out_dir {
|
|
@ -25,6 +25,10 @@ let
|
|||
patches = [ ./packages/new_rclone/patches/rclone_8ffe3e462cbf5688c37c54009db09d8dcb486860.diff ];
|
||||
}
|
||||
);
|
||||
nix-init_packagenix = pkgs.nix-init.overrideAttrs (oldAttrs: rec {
|
||||
patches = [ ./packages/nix-init/default_to_package.diff ];
|
||||
}
|
||||
);
|
||||
unnix_script = pkgs.writeShellApplication {
|
||||
name = "unnix";
|
||||
/* runtimeInputs = [ sed ]; */
|
||||
|
@ -136,6 +140,7 @@ in
|
|||
my_packages.ird_tools
|
||||
my_packages.irdkit
|
||||
my_packages.new_rclone
|
||||
my_packages.nix-init_packagenix # Yay for patched apps :)
|
||||
my_packages.nxtik
|
||||
my_packages.ps3dec
|
||||
my_packages.rom-properties
|
||||
|
|
Loading…
Reference in a new issue