nixpkgs/pkgs/by-name/gs/gscreenshot/0001-Changing-paths-to-be-nix-compatible.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

26 lines
704 B
Diff

From a4822ee9e894f5f5b3110f41f65a698dd845a41d Mon Sep 17 00:00:00 2001
From: Richard Davis <davisrichard437@gmail.com>
Date: Fri, 24 Mar 2023 11:45:23 -0400
Subject: [PATCH] Changing paths to be nix-compatible.
---
dist/desktop/gscreenshot.desktop | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dist/desktop/gscreenshot.desktop b/dist/desktop/gscreenshot.desktop
index a5d2bcd..9d289e2 100644
--- a/dist/desktop/gscreenshot.desktop
+++ b/dist/desktop/gscreenshot.desktop
@@ -2,7 +2,7 @@
Type=Application
Name=gscreenshot
Comment=A simple screenshot utility
-TryExec=/usr/bin/gscreenshot
+TryExec=gscreenshot
Exec=gscreenshot
Icon=gscreenshot
Categories=Graphics;
--
2.39.2