{"action":"reopened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/1455","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/1455/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/1455/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/1455/events","html_url":"https://github.com/NixOS/nixpkgs/issues/1455","id":24984810,"number":1455,"title":"How to handle cache files in environments such as gschemas.compiled","user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-01-02T20:19:53Z","updated_at":"2015-07-29T22:57:46Z","closed_at":null,"body":"# Motivation\r\n\r\nPackages that depend on glib sometimes ship schemas that are compiled into `$out/share/glib-2.0/schemas/gschemas.compiled`. This raises conflicts once more than one such package is installed inside a profile.\r\n\r\n# Proposal\r\n\r\nCopy `gschemas.compiled` to a folder that is unique for package name and version. It would be implemented as setuphook to glib.\r\n\r\nExample for `gitg-0.3.2`:\r\n\r\n```\r\nmv $out/share/glib-2.0/schemas/gschemas.compiled $out/share/glib-2.0/schemas/gitg-0.3.2/gschemas.compiled \r\n```\r\n\r\nAccording to manual page of `glib-compile-schemas` command, it should still be able to find those files."}}